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
Go down
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1467
Rep : 0
Join date : 2014-07-19
View user profile

Walking and Jumping Animation

on Sun Jul 20, 2014 7:56 am
Hi ninja
I need some help and this is my first day with unity. I am onto tutorial 3 and I had created the walking script and animation correctly as well with jumping animation. When I play, it doesn't move and I don't know the problem. I do see that you have to put the script with the gun but I have my arms parent with the gun because it showed that from tutorial 2. But on tutorial 3 the gun was parent to the arms and I am really confused on how to solve this.
Thank you!

function Update()
// Plays the walkinganimation animation - stops all other animations
animation.Play("walkinganimation", PlayMode.StopAll);

function Update()
// Plays the jumping animation - stops all other animations
animation.Play("jumping", PlayMode.StopAll);
Posts : 608
Points : 3167
Rep : 406
Join date : 2013-12-11
Age : 21
View user profilehttps://www.youtube.com/user/misterninjaboy

Re: Walking and Jumping Animation

on Tue Jul 22, 2014 1:41 am
Okay it dosen't matter if the gun is the parent or if the hand is, but the parent has to be the one that contains the animation. There should not be any problems if you have the animation under the parent.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum