Jump to content

How to have mouse down true only once each click?


SYNYST3R1
 Share

Recommended Posts

Like how Unity has getMouseButton and getMouseButtonDown. Is there something like getMouseButtonDown which doesn't return true again until I release the mouse and click again? Right now I am using game.input.mousePointer.isDown which is true as long as I am holding it down and I only want it to be true once.

Link to comment
Share on other sites

Ah the issue is that you've got the "useNumericIndexes" flag set to false, but in your case you are using them. So either set the last parameter to 'true' or just don't include it at all, as it detects you're using an array of numbers automatically now anyway.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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