Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

stopAction() v3.17.2

$
0
0

Hi guys, can i get a little help please?

if i create a Sequence:

auto cb = CallFuncN::create(CC_CALLBACK_0(animationEnd, this));
cb->setTag(someID);
auto seq = Sequence::create(animate, cb, nullptr);
sprite->runAction(seq);

lets say i want to intercept this seq and stop it how do i do that?

i have tried:

sprite->stopAllActions();
sprite->stopActionByTag(someID);

but the callback is still getting called.

i have also set the tag to the sequence. same results;

it looks like its a bug.

thanks in advance!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2748

Latest Images

Trending Articles



Latest Images