walk animations not playing for touch events

I’m sure this is a bug. Please see:
viewtopic.php?f=20&t=11331

I would delete this thread if I could.

Hello there,
I had this problem too. I solved it when I created 2 variables for the player direction.

  1. Create 2 Variables for player. Name them “left” and “right”. (You can use only one but this will make it more easier to see and understand).

Condition: LEFT KEY(arrow) is pressed. Do: Do =1 to variable left of player.
D0 =0 to variable right oft player.
Condition: RIGHT KEY(arrow) is pressed. Do: D0 =1 to variable right oft player.
Do =0 to variable left of player.
2. next we do the same with the mous-movement:
Condition: touch-cursour is leftdown. Do =1 to variable left of player.
AND cursour x < player pointX D0 =0 to variable right oft player.

Condition: touch-cursour is leftdown. Do =0 to variable left of player.
AND cursour x > player pointX D0 =1 to variable right oft player.

  1. Now the workaround (yes it could be a bug).
    Condition:
    variable left of player =1 Do simulate Left
    flip player - yes
    do animation walk

variable right of player =1 Do simulate right
flip player - no
do animation walk

so all in all the workaround is that you put an extra variable for movement left or right in addition to the simulating.

hope this helps and worked.

sincerly moikahl

edit: hope you understood me, my english isnt very good :wink: