Cocos2d-x 3.0 animation frame by frame
Posted
by
Narek
on Game Development
See other posts from Game Development
or by Narek
Published on 2014-05-08T18:20:52Z
Indexed on
2014/06/08
3:40 UTC
Read the original article
Hit count: 403
As I know animations are actions. Now I need to play animation frame by frame. Say I have an animation from N
frames. each frame should be played after t
delay. Now I want to play animation frame by frame, each frame advance the animation's state. How I can do this?
And what about playing actions frame by frame advancing the state in general.
I ask because I use ECS, and I deal with frames.
P.S. I want to do something like this:
Action * a = MoveTo(initialPoint, finalPoint, durationOfAnimation);
a->play(0.001 seconds);
a->play(0.003 seconds);
a->play(0.02 seconds);
a->play(0.67 seconds);
a->play(0.06 seconds);
And see the animation.
© Game Development or respective owner