[Unsolved] Playing animation backwords [Unsolved]

Hello!

I try to make my player play the “walk” animation backwords when the user presses “S”.
I tried this, but it only plays the animation once.
Any help??

function Update () {
	if(Input.GetKeyDown(KeyCode.S))
	{
		animation["walk"].speed = -1;
		animation["walk"].time = animation["walk"].length;
	}
	if(Input.GetKey(KeyCode.S))
	{
		animation.Play("walk");
	}
}

An Animation can be scripted backward, it would be a function of a mere connection of strings and variables. My best bet and simple way of getting around this is either make a seperate animation or go to the animation setting and set it to ping pong. If this does not work this way you can always make a script to change animation settings via a script; comment if you want me to write it for you. Also if this way I suggested work can you thumbs up :slight_smile: