Is it possible to create a skill that would do the simple task of having a unit move backwards without changing the direction it is facing for a set distance?
chocobo said:8. Abusive Using of Backward Animations
When you want to play an animation in reverse mode, like the death animation of a footman, an archer.. or whatever you want, you think for triggers that -100.00% in animation speed is imposible, but, it is possible.
Example with that trigger that has a death unit of 2.333s :
Code:
Events Selection - Player 1 (Red) selects a unit Conditions Actions Set MyUnit = (Selected unit) Animation - Play MyUnit's Animation - death animation Animation - Change MyUnit's animation speed to 500.00% of its original speed Animation - Change MyUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency Wait (2.333 / (500.00 / 100.00)) seconds of game-time Animation - Change MyUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency Animation - Change MyUnit's animation speed to (0.00 - 100.00)% of its original speed Wait 2.333 seconds of game-time Animation - Change MyUnit's animation speed to 100.00% of its original speed Animation - Play MyUnit's Animation - stand animation
Notice : 2.333/(500.00/100.00) = 0.4666
2.333 : Death Animation Time (this is not constant for all units)
500.00 = 500.00% of its original speed
100.00 = A meaning for 100%, bracking 500.00 to 5.
The death animation is played first, with an improvement of the animation speed by 5x and a vertex coloring making the unit invisible to avoid death particles. Then there is a Polled Wait, and the vertex come back to the normal values and the animation speed is reversed. And after, it waits until the animation is fully reversed and the animation is set to 100.00% and to stand to avoid the unit to stuck doing nothing.