问题描述
我正在使用Phaser3。如何在移动设备中左右移动播放器?
// This is the Keyboard left and right logic
if (this.cursors.left.isDown && !touchingDown) {
this.player.setVelocityX(-200);
} else if (this.cursors.right.isDown && !touchingDown) {
this.player.setVelocityX(200);
} else {
// stop Movement if <- & -> not working /
this.player.setVelocityX(0);
}
但是我想通过左右触摸在移动设备上移动它。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)