Problems with buttons to move character, left and right
scrapee_net
Member Posts: 424
Hello.
I put two buttons on my game, One on the left side of the screen, and the other one on the right.
This is the problem:
If I press for example, the left button, the actor will move to the left, and so, if I press the right button without releasing the left one, it will move to the right, and then if I release the right button, the actor wont move to the left again. But the left button is still pressed, So I'd like that the actor move to the left again...
I`m using the rule, if touch is inside, or if touch is pressed.
---
To play well the user needs to release a button before pressing the other one.
How can I solve this?
I put two buttons on my game, One on the left side of the screen, and the other one on the right.
This is the problem:
If I press for example, the left button, the actor will move to the left, and so, if I press the right button without releasing the left one, it will move to the right, and then if I release the right button, the actor wont move to the left again. But the left button is still pressed, So I'd like that the actor move to the left again...
I`m using the rule, if touch is inside, or if touch is pressed.
---
To play well the user needs to release a button before pressing the other one.
How can I solve this?
Comments
http://www.youtube.com/user/GameSaladCookbook#p/u/34/RKiJE1pa4Dc
This throws in two additional rules that check for pressing on the left/right button when the right/left button is already pressed respectably.
Simplifying, I just need a way, that I can move the finger from one button to the other, without releasing the screen.