caesar Posted June 19, 2016 Share Posted June 19, 2016 hello, my goal is to create a sprite bigger then the screen and have the user scroll to see the different parts of it. so i wanted to ask if phaser had any sprite eventListener functions such as var canvas = window.document.getElementsByTagName('canvas')[0], prevX = 0, prevY = 0, mouseDown = false; where canvas can be used as canvas.addEventListener('mousedown',function(e){ }); canvas.addEventListener('mousemove',function(e){ }); thanks Link to comment Share on other sites More sharing options...
benlooi Posted June 19, 2016 Share Posted June 19, 2016 You tried the camera method yet?http://phaser.io/examples/v2/camera/basic-follow Link to comment Share on other sites More sharing options...
caesar Posted June 20, 2016 Author Share Posted June 20, 2016 thanks looks like a clean way. how would i implement it with click and drag events? Link to comment Share on other sites More sharing options...
Recommended Posts