How to moving camera with pointer(mouse)?

Hi. All moving the camera examples at the 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.

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