beuleal Posted June 30, 2014 Share Posted June 30, 2014 Hi guys, im so excited with my new game! Im spechless with phaser... \o/ I have one problem that i cant find solution... i checked the docs: http://soluka.fr/docs/phaser/v1.1.6/doc/Mouse.js.html http://docs.phaser.io/Phaser.Mouse.html#capture And.... I dont know how to check the mouse click just one time! Take a look what i have:game.input.onDown.add(timeAttackStart, this);But, everytime i click, my function timeAttackStart is called :C What should i do? Tks! Link to comment Share on other sites More sharing options...
CtlAltDel Posted June 30, 2014 Share Posted June 30, 2014 game.input.onDown.addOnce(timeAttackStart, this); lewster32 1 Link to comment Share on other sites More sharing options...
Recommended Posts