I’m trying to limit how far the user can drag the camera so it doesn’t go too far outside the map.
I used the code from this example phaser3-examples/public/src/tilemap/mouse wheel zoom.js at master · Antriel/phaser3-examples · GitHub
It zooms well to the pointer and map dragging is working perfect. I want to get something like the room map from kumospace.com
camera.setBounds(x, y, w, h)
1 Like
Thanks❤️