Jump to content

Check mouse click


beuleal
 Share

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:
 

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

 Share

  • Recently Browsing   0 members

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