onLoad() {
this.node.parent.on(cc.Node.EventType.TOUCH_END, this._click, this);
}
start() {
}
update(dt) {
console.log(this.node.y);
}
private _click() {
this.node.runAction(cc.jumpTo(1, this.node.x + 200, -320, 100, 1));
}
启动时node的y在0,只要跳过去的终点的y低于当前node的y值,height就根本不会达到想要的高度,看api,应该是跳跃的高度才对啊!