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?

check if animations still running


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -