Hi. All moving the camera examples at the https://phaser.io/examples are work with cursor keys, but how about pointer? I’m speaking about camera moving and not sprite(player) moving.
I want something like this, but for camera moving and for phaser 3.
https://phaser.io/examples/v2/arcade-physics/accelerate-to-pointer
You may adapt these examples by using pointermove
event instead. Using the pointer object passed to the callback to set the camera scroll or center it from pointer position.
This examples do what you want.
1 Like