How do I make a button that can only be pressed once / you can't hold it
I've created a button by checking if the left mouse button is being pressed and the cursor x/y are in the boundaries of the button but the issue is that if you even hold it down for longer than a second it receives way to much input. Is the way I'm checking if the button is pressed bad or how can I make it so this won't happen.
I've created a button by checking if the left mouse button is being pressed and the cursor x/y are in the boundaries of the button but the issue is that if you even hold it down for longer than a second it receives way to much input. Is the way I'm checking if the button is pressed bad or how can I make it so this won't happen.
No comments:
Post a Comment