Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88757

action一点疑问

$
0
0

@406504302 写道:

cc.Class({
extends: cc.Component,
properties: {
enemy: cc.Node
},
onLoad: function () {
var action = cc.moveTo(2, cc.p(0,-200));
this.enemy.runAction(action);
action = cc.moveTo(2, cc.p(200,0));
this.enemy.runAction(action);

}

});

期望移动轨迹如下

实际移动轨迹

为什么呢?如果我想得到期望的移动轨迹如何处理呢

帖子: 3

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88757

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>