rexrainbow / phaser3-rex-notes

Notes of phaser3 engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong touch with Virtual Joystick using the camera (PHASER 3)

convitesamigo opened this issue · comments

Hello! I'm using phaser 3.70.0 together with its VIRTUAL JOYSTICK plugin.

The Virtual JoyStick works perfectly as long as I'm within the limits (W: 0-600px and H: 0-800px).

But when the player leaves this limit and the camera starts following him, the joystick's drag button starts to behave wrongly. You can't drag it anywhere, it goes to a random position.

commented

Please provide a simplest, runnable test code for demonstrate this use-case.

Please provide a simplest, runnable test code for demonstrate this use-case.

https://convitesamigo.github.io/vjoystick/

commented

I replace the plugin file on your repo by my latest version of plugin. It works fine. Live demo

Might try to use latest version of rexvirtualjoystickplugin

Very good, problem solved!
Worked perfectly. Now I can finish my multiplayer game. Thank you very much!