Sprite Manipulation

Place to get help with not working mods / modding interface.
Post Reply
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Sprite Manipulation

Post by DedlySpyder »

I created a quick mod yesterday to rotate equipment dynamically. The main problem with this is the sprite for the equipment. From what I've found I can't manipulate the sprite before the game loads it.

I'll use the battery as an example. The base sprite is 32x64. I want to rotate it so it is 64x32. As it stands, Factorio will accept it as a 32x32 sprite and just chop off the bottom 32x32 square. If I attempt to scale it down, I just get the 32x32 upper half, but half sized as well.

My hope was to either be able to rotate that sprite horizontally (I believe impossible) or to scale it down BEFORE it gets chopped (so a 16x32 battery sprite in a 64x32 box).

I haven't found a way to make the latter work, but this is my first venture into trying anything sprite-wise beyond the basics.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite Manipulation

Post by darkfrei »

DedlySpyder wrote:
Sat Sep 05, 2020 6:05 pm
I'll use the battery as an example. The base sprite is 32x64. I want to rotate it so it is 64x32.
viewtopic.php?t=63410

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

Re: Sprite Manipulation

Post by DedlySpyder »

Sun Nov 11, 2018
Oof. I added my 2 cents on the request though. Fingers crossed I guess.

Post Reply

Return to “Modding help”