Hi Scirra people!
Im having a problem in my game, when the player is touching objects to fast.
Is there a way to dissable the touch object if it gets abused? ie when a player touches the objects in the game too fast.
Any help would be apreciated!
xanxion
Maybe only allow Touch when a variable is equal to 0.
So on each Touch you set the variable to 1 and start a timer (e.g. for 0.5 seconds) and when the timer finishes set the variable back to 0 allowing Touch again.
That way the player can only Touch every half second.
Something like:
Touch->Is touching object System->Compare TouchVariable = 0 Do touch action System->Set TouchVariable = 1 System->Compare TouchVariable = 1 System->Wait 0.5 seconds System->Set TouchVariable = 0 [/code:1guwm63p]
Good idea, thanks for it.. I should have thought of that!
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
i tried it, but it didnt really work with my setup, because i use a picking sensor system.
Any other ideas out there?