Page 1 of 1

[Solved]How to animate an animation

Posted: Sat Jan 04, 2014 3:37 am
by zooks97
For my character's walking animation I need to be able to move the eye blinking animation for each frame of the walking animation (the walking animation has four frames but I only need two frames of moving the eyes((x, y), (x, y-1), looping). The delay for the blinking eyes is not in sync with the delay walking animation, so making another animation for the eyes is out of the picture. In short, I need the eye animation to "stick" with the head bobbing. I'm using AnAL for the animations. Thanks :nyu:.
.love Download

You can see the difference in this video:

Re: How to animate an animation

Posted: Sat Jan 04, 2014 11:26 am
by micha
After updating the animation, get the frame number of the body. And then in the draw-function set the offset for drawing the eyes depending on the current frame of the body.