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 .
.love Download
You can see the difference in this video:
[Solved]How to animate an animation
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[Solved]How to animate an animation
Last edited by zooks97 on Sat Jan 04, 2014 4:01 pm, edited 1 time in total.
Re: How to animate an animation
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.
Check out my blog on gamedev
Who is online
Users browsing this forum: No registered users and 2 guests