Hi guys,
I've discovered the option of when the user has the mouse button down, but not sure how to count how long it's held. Like a powerup feature. I tried adding Wait but that didn't seem to work.
Thanks heaps!
You could create a global variable MouseButtonDown
System every x seconds
-system add x to MouseButtonDown
That way you would now precisely how many seconds the button was down.
Develop games in your browser. Powerful, performant & highly capable.
An alternative could be to use a global variable MouseButtonTimeDown:
Condition:
Mouse Button is down Trigger once while true
Mouse Button is down
Trigger once while true
Action:
MouseButtonTimeDown = time
Then have another condition checking for MouseButtonTimeDown > whatever cutoff time you want for subsequent actions.
Check my subject.
scirra.com/forum/topic84702.html
I had the same problem but with space key.
I let a time of 0.2 s cause of maniac shooter style game.
I hope it could help you!