Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17103

Finish all running actions?

$
0
0

@piotrros wrote:

Hi, is it possible to finish running action? By finishing I don't mean stopping but instantly forwarding it to the end.

For example:

sprite->setPosition(0, 0);
sprite->runAction(MoveBy::create(0.5f, Vec2(100, 0));
finishActions(sprite); //some magic function
//now sprite is at (100, 0)

I have very complicated block of animations and very rarely something goes wrong and one of sprites is few pixels off. I wanted such a method to test if it'll fix this bug.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>