start () {
let self=this;
this.node.on(cc.Node.EventType.TOUCH_MOVE,function(event){
self.node.setPosition(event.getLocation());
});
}
start () {
let self=this;
this.node.on(cc.Node.EventType.TOUCH_MOVE,function(event){
self.node.setPosition(event.getLocation());
});
}
触摸跟随 为什么点击后发生位置偏移
getLocation是世界坐标
你要转成本地坐标
确实是坐标系的问题