grofit Posted March 5, 2015 Share Posted March 5, 2015 I basically want to zoom the camera (well change the scale) based upon user mouse wheel events or on a touch zoom/zoom out style event. I know there is onUp, onDown, onHold etc but cannot find any documentation around the mouse wheel or zooming. Does phaser have the notion of the above events? or if not is there some way to achieve that behaviour? Link to comment Share on other sites More sharing options...
valueerror Posted March 6, 2015 Share Posted March 6, 2015 phaser does not.. i have ;-) i need to search for it.. wait a secooooond... ah.. there it is http://jsfiddle.net/valueerror/pdx0px0w/ it took me hours to get the math right .. lol sorry.. where do i get the phaser.js file now? i need a https source ?? Link to comment Share on other sites More sharing options...
valueerror Posted March 6, 2015 Share Posted March 6, 2015 https://jsfiddle.net/valueerror/pdx0px0w/ so.. this should work now.. Link to comment Share on other sites More sharing options...
grofit Posted March 6, 2015 Author Share Posted March 6, 2015 thats a lot of code, thanks will take a closer look. Link to comment Share on other sites More sharing options...
Recommended Posts