Cocos2d-x 3.0 animation frame by frame
- by Narek
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.