Doodlemeat Posted May 3, 2014 Share Posted May 3, 2014 Hey. I would like to have a method called isDownOnce() or something similar in the Input class of Phaser. Behaviour:When a key is pressed down, the function returns true and when it is held down, the function return false because one has to let the key go before pressing it again. Link to comment Share on other sites More sharing options...
Heppell08 Posted May 3, 2014 Share Posted May 3, 2014 Is that not the same as justPressed() or onUp() ?? Link to comment Share on other sites More sharing options...
Doodlemeat Posted May 3, 2014 Author Share Posted May 3, 2014 You are right on the onUp() and onDown() but not with justPressed() because it takes a duration. Anyway, since I solved it by using onDown() this can be closed Link to comment Share on other sites More sharing options...
Recommended Posts