Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » animation works but wont stop

animation works but wont stop

View previous topic View next topic Go down  Message [Page 1 of 1]

1 animation works but wont stop on Wed Oct 29, 2014 12:04 pm

FRAGSn111pezz


Member [Lv. 2]
Member [Lv. 2]
Hi,
I got my walking animation working but when i press w and release it it just keep looping and i just dont know what to do here is my script:

function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walking animation - stops all other animations
animation.Play("WalkingAnime", PlayMode.StopAll);
}
}

and i have made it legacy etc but i just dont know what to do...

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum