pantoninho Posted October 19, 2015 Share Posted October 19, 2015 Good evening everyone, I'm trying to make something like http://phaser.io/examples/v2/camera/deadzone, but I'd like the camera to follow the mouse pointer instead of a sprite. I'm a bit stuck and would like to know if anyone has already tried to do it. If so, what's the best way to achieve this? Thanks in advance,Pedro Antoninho Link to comment Share on other sites More sharing options...
drhayes Posted October 20, 2015 Share Posted October 20, 2015 I would make an invisible Sprite that sets its x and y positions in update to the mouse coordinates. Then tell the camera to follow your invisible sprite. Link to comment Share on other sites More sharing options...
Recommended Posts