Rotate image, mirror image

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Rotate image, mirror image

Post by darkfrei »

Can you add the possibility to rotate and/or mirror images?
For example it can be very helpful for animations of belts, now horizontal and vertical animations are two different files, but directions 0 (north) and 4 (south) are mirrored, also 2 (east) and 6 (west) come from another file, but also mirrored.
belt_vertical.png
belt_vertical.png (36.42 KiB) Viewed 988 times
belt_horizontal.png
belt_horizontal.png (32.75 KiB) Viewed 988 times
The curved transport belt has also same animation, all variations can be done just with rotation and, surprisingly, with mirroring sprites.
animations.png
animations.png (196.07 KiB) Viewed 988 times

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Rotate image, mirror image

Post by DedlySpyder »

+1 on rotating image at least

My use case is dynamically adjusting equipment in other mods without the need to know they exist. Specifically to allow for rotating equipment. Currently, my mod will just chop off the normal sprite unless the other mod supplies a rotated version of the sprite.

Creating the rotated sprite is trivial to do by hand, but the fact that I can't do it for every equipment out there (in a feasible manner) means that sometimes they're just gonna look bad.

Post Reply

Return to “Modding interface requests”