Hello everyone, here's the problem i face:
If you have a character who should move like
On [UP pressed (once and release)] he moves to last mouse position like and rts (or do certain action)
On [UP pressed twice] he dash to mouse position (or do a different action)
On [UP held down] he follows the mouse position as long as you keep pressing UP.
The player should move mainly by holding up a button. But should be able to dash by double tap the same button or move automatically to mouse position if a single tap of this same button is pressed.
The first two events works fine together, (thanks to some helping people here), but the last one, holding a button to do something it's giving me a headache.
I can make the three work simultaneusly but if i relase the held button to stop it's action, (pursuing the mouse position in this case), it paralyze the others movement events too.
So the deal is how to use the same button to do 3 different actions depending if you hold it, press it once or double tap it.
Specially taking into account that releasing the held button to stop its actions breaks any of the rest inputs types.
Here is a quick capx with the 3 movement conditions and the held button not stoping the player no matter what i try.
https://www.dropbox.com/s/23uof75u5u2y7 ... .capx?dl=0
I need help on this. I have no more brain left...
Thanks in advance and to those that created the template i use here <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">