I think I understood the problem.
When I double click very fast several times, I see the animations change a fraction of a second.
If in the double click, I only change character speed to 20, it works
but if I add "Change character animation index to" 2 ", it works only 1 fraction of a second only when I click very fast several times (really fast).
So the double click function works
What I think :
- When double clicking, VS automatically saves the info that the character must go to where I clicked, since the engine sends a character automatically to the place where the player clicks and triggers the animation WALK
- Then only after the script launches. VS accelerates the movement with "change character speed" but the "change character animation" does not work because the animation "walk" is already playing ...
What do you think of my theory and is there a solution?
WORK :
Change character speed of 'Ben' to 20
Wait until character 'Ben' stops
Change character speed of 'Ben' to 6
NOT WORK :
Change character speed of 'Ben' to 20
Change character animation index of 'Ben' to 3
Wait until character 'Ben' stops
Change character speed of 'Ben' to 6
Change character animation index of 'Ben' to 0