sliding finger off of game button...
Cee3pee0
Member, PRO Posts: 194
In my game, when i slide my finger off a button it keeps controlling the action even when i'm not touching the button or the screen anymore, i have to press the button again to get it to "unlock". I have 2 rules for the button that when it is released and when touch is outside it should stop, and it does if you are still on the button (like it is suppose to). But if my finger accidentally slips off the button the action stays locked. anyone know a remedy for this? kind of a game-breaker..
Comments
otherwise, when touch is released, or is outside, changes attribute to 0
Set the movement with the button, and have the actor move if the attribute is set, and reset the attribute so it is not active until the button is pressed again.
I sort of fixed it by putting a timer on it, saying "after 0.7 seconds, change to "false". That way, if or when it gets stuck in the on position, it hardly notices because the timer corrects it.
Cunning but it worked!
Conditions is `ALL` not any
When touch is `PRESSED`
When touch is `INSIDE`
blah, blah
Otherwise
blah, blah
I tried it & it worked perfectly.
Thanks JGary321
Thank you beefy!