cocos creator怎么获取触摸点坐标

2025-03-10 12:17:47
推荐回答(1个)
回答1:

你弄复杂了
this.node.on('touchstart',function(event){
var pos = event.getLocation();
},this);

这样就会得到触点坐标,后续可以再转化为游戏内坐标