Jump to content

Check mouse click


Recommended Posts

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:





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?



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...