Cocos2d-x. How to add action on the sprite after the previous one was finished -
i add action on sprite.
auto moveby = moveby::create(2, vec2(movex, movey)); _spr1->runaction(moveby); i want add action on touch, want second 1 started after first 1 finished.
and if tap 2 times before first action stops, want create sequence 1 old action , 2 new ones.
how queue following actions, wait current actions finish, , add them?
Comments
Post a Comment