CallFunc is an Action that lets you do callbacks after your action. Something like
1 2 | auto seq = Sequence::create(MoveTo(1.0f, Vec(200, 350)), CallFunc::create(func)); my_node->runAction(seq); |
That’ll move the node my_node, and then call func right after.