Actions onComplete

Hi,
Is there a way to handle onComplete of an action for example cc.moveTo ??

Hi ,
You must use cc.sequence and cc.callFunc as following:
var seq = cc.sequence(cc.moveTo(cc.p(10,10)),cc.callFunc(()=>{ //do somthing}));

1 Like

Thanks. That worked :slight_smile: