andrew.shay.sc Posted June 22, 2014 Share Posted June 22, 2014 To start, I'm very new to this and I may be missing an obvious answer. Sorry! I want to make on screen buttons for touch screens and the standard joystick doesn't work well. I would like to make a button to move characters left, right, jump and attack. Right now I can get an image on the screen to move the character by clicking it over and over again. But I'm not sure what to put in the update to check to see if it's being held down. Any ideas? Thank you very much Link to comment Share on other sites More sharing options...
lewster32 Posted June 23, 2014 Share Posted June 23, 2014 This is very straightforward stuff in most tutorials and examples, so I'll direct you to a few example/tutorial pages that cover this specifically: http://examples.phaser.io/_site/view_full.html?d=input&f=cursor+key+movement.js&t=cursor%20key%20movement http://gamemechanicexplorer.com/#platformer-4 Link to comment Share on other sites More sharing options...
andrew.shay.sc Posted June 25, 2014 Author Share Posted June 25, 2014 This is very straightforward stuff in most tutorials and examples, so I'll direct you to a few example/tutorial pages that cover this specifically: http://examples.phaser.io/_site/view_full.html?d=input&f=cursor+key+movement.js&t=cursor%20key%20movement http://gamemechanicexplorer.com/#platformer-4Thank you! The 2nd link was very helpful Link to comment Share on other sites More sharing options...
lewster32 Posted June 25, 2014 Share Posted June 25, 2014 Yeah that website has lots of great real examples of how to implement standard game features. Link to comment Share on other sites More sharing options...
valueerror Posted June 25, 2014 Share Posted June 25, 2014 http://www.html5gamedevs.com/topic/1813-the-monthly-phaser-examples-contest/?p=27173have a look here too. maybe it helps... Link to comment Share on other sites More sharing options...
Recommended Posts