animations

Place to get help with not working mods / modding interface.
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

animations

Post by cartmen180 »

Hello again everyone,

I am having trouble with animations. I can't figure out how to use on and off animations with assembling machine types. Is it just not possible or am i missing something?
Check out my mods
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: animations

Post by bobingabout »

I know you're smart, so I'll give you a hint, rather than finding and typing out the answer for you.

Look at the animation section on an existing assembly machine, it has a single entry. This animation will play on a loop, and stop on the current active frame when production stops.

Now look at the multiple graphics definition sections on the chemical plant. it has an animation definition that is a single image, as well as a working animation (2 in fact) that only shows while the building is working.

Using these 2 buildings as reference should help you figure it out.

Note that when trying to set the position, the sprite frame is placed dead center of the entity (I'm not sure of the exact pixel placement with odd dimentions), and the offset is measured in tiles, a tile is 32x32 pixels, therefore 1 pixel is 1/32.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: animations

Post by cartmen180 »

worked like a charm, i can't believe i missed this xD
thnx bob :)
Check out my mods
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: animations

Post by bobingabout »

You're Welcome :3
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”