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?
animations
-
- Filter Inserter
- Posts: 358
- Joined: Fri Jul 25, 2014 2:53 pm
- Contact:
animations
Check out my mods
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: animations
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.
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.
-
- Filter Inserter
- Posts: 358
- Joined: Fri Jul 25, 2014 2:53 pm
- Contact:
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: animations
You're Welcome :3