新手入门求教问题

ERROR: Uncaught TypeError: event.getDeltax is not a function, location: assets/PlayerController.js:0:0
STACK:
代码:touchPos=event.getDeltax();
问题出在了哪里

getDeltax is not a function,没有这个函数,你去api手册搜索一下有没有这个函数

event.target 劝你善良。