Page 1 of 1

animations

Posted: Thu Oct 16, 2014 9:35 pm
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?

Re: animations

Posted: Fri Oct 24, 2014 8:02 am
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.

Re: animations

Posted: Fri Oct 24, 2014 8:58 am
by cartmen180
worked like a charm, i can't believe i missed this xD
thnx bob :)

Re: animations

Posted: Fri Oct 24, 2014 12:56 pm
by bobingabout
You're Welcome :3