var finished = cc.callFunc(function () {
cc.log(“born end”);
}, this,null);
this.node.runAction(
cc.sequence(cc.moveTo(2.0, cc.v2(this.m_positionX, -100),finished)));
var finished = cc.callFunc(function () {
cc.log(“born end”);
}, this,null);
this.node.runAction(
cc.sequence(cc.moveTo(2.0, cc.v2(this.m_positionX, -100),finished)));
你语法写错了,括号的位置,改为
this.node.runAction(
cc.sequence(cc.moveTo(2.0, cc.v2(this.m_positionX, -100)),finished));
谢谢谢谢,没注意看