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
Share
Go down
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 1494
Rep : 1
Join date : 2014-06-28
Age : 16
View user profile

animation not playing (AnimationSetup)

on Sat Oct 04, 2014 1:58 am
Message reputation : 67% (3 votes)
I did exactly as MisterNinjaBoy said in the special ep for fps tut...but it dose not work for me...here is what i did i made the animation and named it walk then i put the script and the animation in the gun.Please Help Me Thanks Smile
avatar
Moderator
Moderator
Posts : 76
Points : 1926
Rep : 16
Join date : 2014-06-02
Age : 15
Location : Milky Way
View user profile

Re: animation not playing (AnimationSetup)

on Sat Oct 04, 2014 1:18 pm
Please put this in Help next time.
Wooden
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 16
Points : 1518
Rep : 4
Join date : 2014-07-11
Age : 19
Location : usa
View user profilehttp://truefpscombat.wix.com/fpsassalt

Re: animation not playing (AnimationSetup)

on Sat Oct 04, 2014 2:10 pm

I think I know what you did wrong.Select your game object that you want to animate,go to the component tab,then misicellaneous,and click animation.Then you can animate your game object.
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 1494
Rep : 1
Join date : 2014-06-28
Age : 16
View user profile

Re: animation not playing (AnimationSetup)

on Sat Oct 04, 2014 3:55 pm
FPS assault wrote:
I think I know what you did wrong.Select your game object that you want to animate,go to the component tab,then misicellaneous,and click animation.Then you can animate your game object.

i did that but when i do the animation does not start...heres the script:

function Update()
{
if(Input.GetKeyDown("w"))
{
animation.Play("walk", PlayMode.StopAll);
}
}
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 16
Points : 1518
Rep : 4
Join date : 2014-07-11
Age : 19
Location : usa
View user profilehttp://truefpscombat.wix.com/fpsassalt

Re: animation not playing (AnimationSetup)

on Sat Oct 04, 2014 5:06 pm
Hmmm try this.
Code:
var AnimationClip : AnimationClip ;
function Update() {

 if (Input.GetKeyDown (KeyCode.W))
{
    animation.Play();
 
}

}
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 1494
Rep : 1
Join date : 2014-06-28
Age : 16
View user profile

Re: animation not playing (AnimationSetup)

on Mon Oct 06, 2014 6:25 pm
FPS assault wrote:Hmmm try this.
Code:
var AnimationClip : AnimationClip ;
function Update() {

 if (Input.GetKeyDown (KeyCode.W))
{
    animation.Play();
 
}

}

sorry i dont know where to put it
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 16
Points : 1518
Rep : 4
Join date : 2014-07-11
Age : 19
Location : usa
View user profilehttp://truefpscombat.wix.com/fpsassalt

Re: animation not playing (AnimationSetup)

on Mon Oct 06, 2014 11:35 pm
Here is a link to my google+,I have you a tutorial for animation I made.If you still cant get it then I dont know what to do.  Wink Good luck     [You must be registered and logged in to see this link.]
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 1494
Rep : 1
Join date : 2014-06-28
Age : 16
View user profile

Re: animation not playing (AnimationSetup)

on Tue Oct 07, 2014 7:27 pm
FPS assault wrote:Here is a link to my google+,I have you a tutorial for animation I made.If you still cant get it then I dont know what to do.  Wink Good luck     [You must be registered and logged in to see this link.]

Thanks Man
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 16
Points : 1518
Rep : 4
Join date : 2014-07-11
Age : 19
Location : usa
View user profilehttp://truefpscombat.wix.com/fpsassalt

Re: animation not playing (AnimationSetup)

on Tue Oct 07, 2014 8:10 pm
You got it?
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 1494
Rep : 1
Join date : 2014-06-28
Age : 16
View user profile

Re: animation not playing (AnimationSetup)

on Wed Oct 08, 2014 4:32 pm
FPS assault wrote:You got it?

yup it worked Thank You!
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 16
Points : 1518
Rep : 4
Join date : 2014-07-11
Age : 19
Location : usa
View user profilehttp://truefpscombat.wix.com/fpsassalt

Re: animation not playing (AnimationSetup)

on Wed Oct 08, 2014 8:16 pm
Your very welcome. Smile
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1363
Rep : 0
Join date : 2014-11-03
View user profile

Re: animation not playing (AnimationSetup)

on Tue Nov 04, 2014 12:55 pm
I know this forum is a bit old, but I have a different problem. My animation starts without hitting w, and never stops. I restarted the project, and deleted the old one, but just in case it doesn't work again, any tips?
avatar
Admin
Admin
Posts : 608
Points : 3169
Rep : 406
Join date : 2013-12-11
Age : 21
View user profilehttps://www.youtube.com/user/misterninjaboy

Re: animation not playing (AnimationSetup)

on Wed Nov 05, 2014 7:40 pm
Pnash600 wrote:I know this forum is a bit old, but I have a different problem. My animation starts without hitting w, and never stops. I restarted the project, and deleted the old one, but just in case it doesn't work again, any tips?
This forum is old? I think you mean topic.. Haha as this forum is about to hit it's first 'birthday' this december.. And For trouble with stopping animations, I recommend you skip to my 5th tutorial, where I show how to fix this problem trowards the end of the video, and also include a full source project download, with no problems.
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1363
Rep : 0
Join date : 2014-11-03
View user profile

Re: animation not playing (AnimationSetup)

on Thu Nov 06, 2014 9:01 am
Okay, thanks for such a quick reply, and one more thing, I wasn't too concerned with that but I will take a look at it, but the aimdownsight script was also giving me an error, something about fpswalker being unknown, I looked it up and could only find one person who had a similar problem but got no answer. I did however find a much more simplified ads script in another aiming tutorial, would it work to just insert that in instead?
avatar
Admin
Admin
Posts : 608
Points : 3169
Rep : 406
Join date : 2013-12-11
Age : 21
View user profilehttps://www.youtube.com/user/misterninjaboy

Re: animation not playing (AnimationSetup)

on Thu Nov 06, 2014 6:49 pm
Pnash600 wrote:Okay, thanks for such a quick reply, and one more thing, I wasn't too concerned with that but I will take a look at it, but the aimdownsight script was also giving me an error, something about fpswalker being unknown, I looked it up and could only find one person who had a similar problem but got no answer. I did however find a much more simplified ads script in another aiming tutorial, would it work to just insert that in instead?
Yes you can use ur own aiming script, in fact I use a simplified error free aiming script in tut 5 and 6.. So just skip to tut 5 and ignore 4, should solve all your problems.
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1363
Rep : 0
Join date : 2014-11-03
View user profile

Re: animation not playing (AnimationSetup)

on Fri Nov 07, 2014 6:51 am
Okay, thanks for all your help!
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1232
Rep : 0
Join date : 2015-03-07
View user profile

Re: animation not playing (AnimationSetup)

on Sat Mar 07, 2015 7:51 pm
hello ..Smile Smile
I have followed your tutorial .. but I have a little problem with the "walking animation".
My animation moves itself without me pressing the "w" and can not stop ..Sad
I use unity 4.5.0
please provide a solution. thank you .... Smile Smile
Back to top
Permissions in this forum:
You cannot reply to topics in this forum