For all people having trouble with stopping animations, there's a reason why I made numerous other tutorials continuing this series. Just continue to tut 4, and I explain stopping animations in that tutorial or the fifth one.
No the reason I say that is because you dont cover it in either you fucking spastic. Go on and find it and put the time in and which one it is, you don't even know what you cover in your "tutorials"
his tutorials isnt Perfect, but they are good. I know that many People have trouble, but it isnt easy having 10 000 People asking for help. You can easily find help on forums, or even the comments of the video :D
Well they obviously didn't fucking work because I've tried that already, instead I got some dumbshit fuckwad reply to me and then when I ask him where in the tutorial it was he sends back some ambiguous reply not answering my actual question. Stop wasting my fucking time.
I have to admit myself, this isn't a perfect tutorial at all. In fact it has the most flaws out of all my tutorials. I noticed this argument between the two of you, and I'm just going to jump in and say to you 'Anon amous,' that if you visit my forum, i guarantee that the problems you are facing are probably already resolved within the threads. But it seems you aren't interested in any of my content, which is totally fine! So find another unity tutor, and i wish the best of luck in you're game. I reccomend you check out eteeski tutorials, or quill18creates. Have fun ;)
If anyone has problems with the Animation not working and are using Unity 5. Here is the correct script needed for this tutorial: function Update () { if (Input.GetButton("Button Name Goes Here.")) { GetComponent.().Play("Animation Name Goes Here", PlayMode.StopAll); } } You can find all the buttons names and what they do in the Edit/Project Setting/Input under the Axis drop down box. Hope this help you if so then like the comment so that more people can see it and not have the same problem that we had.
this is the first scripting tutorial video i've seen that actually takes time to explain what's going on. will be waiting for part 4, hopefully you will upload it soon.
MissingComponentException: There is no 'Animation' attached to the "1FPS_HAND" game object, but a script is trying to access it. You probably need to add a Animation to the game object "1FPS_HAND". Or your script needs to check if the component is attached before using it. walkingscript.Update () (at Assets/walkingscript.js:6) WUT DOES THIS MEAN
Guys, I figured out the problem with the animation not playing! Okay so first, select the item you created an animation for, then click add component > miscellaneous > animation, click the circle and select your animation. Play the game, if you get a "Animation must be set to legacy" error follow these steps. 1.View your animation in the inspector 2.Click the drop down next to the lock (right above your animation name) 3. Select debug 4. Set the animation type to 1 (instead of 2) Hope that helps!
to stop animation you do the following : -add one animation imperturbable called " stop " -and add the following script into ...... function Update() { if(Input.GetKeyUp("w")) { // Plays the stop animation - stops all other animations animation.Play("stop", PlayMode.StopAll); } } it work :D
I love your tutorials! You have really helped in getting me started in Unity and understanding the GUI. At 5:48 that's a comment, it has no influence on the code itself. :P Keep up the good work.
if you press the w and it doesent play the animation make sure that you didnt made a big W in the script instead of small w. if your arms dissapear try to put the weapon in the arms folder instead of arms in the weapon folder :-)
You rock thank you so much I tip my hat to you..... well if I had a hat and could see u but thanks I really could not find anybody with good fps tutorial again thank you you are super kind to do this stuff for us when I start making my game and when I'm finished I will see that that you get it for free because of all the help you gave me thank you
I know a solution to the problem where it says there is no animation attacked to the M4A3 but the script is trying to reach one. You must click on the gun, then go to component>add. Search animation, then add that component. Select the animation you want to use. If it says the animation needs to be marked as legacy after that, click on your animation, right click the inspector and set it to debug mode. Then set the animation type to 1
Hey, i have a weird problem!!! I make this: function Update() { if(Input.GetKeyDown("w")) { // Plays the walking animation - stops all other animations animation.Play("walking", PlayMode.StopAll); } } But when i hit play, my character just does the animation whatever i do :( SAD!!!!!!!!!
I think it would be really great if you actually showed us how you create all those scripts, because in the end we just want to learn how it all works so that we can create whatever we want in the future - we can't rely on your ready made scripts all the time)
So i did everything for the walk animation, the one in this video, many others, i even went on the forum and found a "solution" to the issue, yet still, my walking animation wont work correctly... function Update() { if(Input.GetKeyUp("w")) { // Plays the _____ animation - stops all other animations animation.CrossFade("idle"); } } i am trying to use this yet it wont stop the animation whatsoever...
hi..thanx 4 the tutorials..i have a problem...my gun seems to go through the small hills that i have created while climbing them....what is the solution?
Aizeah Mangrobang Probably too late, just watching these videos in my spare time. The gun asset is called the M4A3 so that would be your problem. You can either change the script or simply rename the game object to M4A1.
Aizeah Mangrobang Probably too late, just watching these videos in my spare time. The gun asset is called the M4A3 so that would be your problem. You can either change the script or simply rename the game object to M4A1.
so kinda this tutorial, kinda the next one, but I'm trying to use a sword, and whenever I try to animate the sword swings, it looks like the rotation in each frame is being changed, but when I replay the animation every keyframe resets to the original position
First off big thanks for your tutorials, Im trying to follow them as best as I can, however Im stuck at loop animation, my animation does one loop and that's it, even though I have selected "loop" in wrap mode, thanks
Alright, so before you create the animation, you name the file "walkanim2" yet when you're in the walkingscript script you enter the name "walkinganimation". What's all that about?
OMFG this is a problem that I need you to fix. I make a animation named it "walkinganimation" put it into a script and all of that but I go to play the animation and nothing hapens. PLEASE get back to me ASAP!!! I am litterly raging I tryed 10 times already to fix it.
It says 'all compiler errors must be fixed before entering playmode' and the scripting was function Update() { if(Input.GetKeyDown("w")) { // Plays the walkinganimation animation - stops all other animations animation.Play("walkinganimation", PlayMode.StopAll
When I make a walking animation for the gun I'm using it sets the animation as default and just keeps playing the animation in a constant loop. Using the script that makes it play an animation doesn't work, it just continues to play through the animator. The walking animation was set to default when I created the animation automatically. I tried fixing this by making an idle animation, but again it just loops the idle animation and doesn't play the walking or reloading animations when the script is set up properly.
ChandlerGuy I'm not entirely sure if I still have the script. I think I actually looked at a different video after realizing this one didn't all the way.
help !! The animation state walking could not be played because it couldn't be found! Please attach an animation clip with the name 'walking' or call this function only for existing animations.
MissingComponentException: There is no 'Animation' attached to the "M4A3" game object, but a script is trying to access it. You probably need to add a Animation to the game object "M4A3". Or your script needs to check if the component is attached before using it. walkingscript.Update () (at Assets/walkingscript.js:6) help meee
EVERYONE I FIXED THE ANIMATION PROBLEM! OK FIRST MAKE A IDLE ANIMATION WHERE THE GUN STANDS STILL! Call it "idle" then use this script i threw together: function Update() { if(Input.GetKeyDown("w")) { // Plays the walkanimation animation - stops all other animations animation.Play("walkanimation", PlayMode.StopAll); } if(Input.GetKeyUp("w")) { // Plays the idle animation - stops all other animations animation.Play("idle", PlayMode.StopAll); } }
DO NOT MERGE IT INTO 1 SCRIPT FOR STOPPING IT!!! There's a reason why I made 3 more tutorials after this one.. I explained everything including how to stop animations in the 4th or 5th tutorial, so just continue the series, and all problems should be fixed!
Please calm down mister NinjaBoy it worked perfectly for me, i was just sharing my works in the comments. I will take a look at the next tutorials, relax.
***** Haha i just tried to really emphasize how much i don't recommend merging scripts, but if it worked for you thats great! Haha dw I ain't angry, did I sound angry? Maybe it was the caps lock lol :)
Problem#1: when i click on the animation in the project view then the inspector does not show "wrap mode" option but a set of options such as loop time etc. Problem#2: when i create the animation script and ad it to the fps controller's gun, the unity editor bricks as soon as i press "w". then i have to use windows task manger to force close it. have tried both C# and JS. Please help!
Ok, so my walk animation works fine in the scene mode, but when I switch to game mode, nothing happens (the hand and gun do not move like they are supposed to with the animation). Has anyone else had this problem? I have followed step by step since tutorial 1 and I am stuck here (using Unity 4.1).
i have a problem with the walking animation, i created it and followed the steps in the vid and added the script and everything, but when i go in play mode the animation plays without stopping even when i didn't press W i tryed to fix this problem for days and i couldn't, so can u please help me
i need help i have this error Animation clip 'walkinganim' is not retargetable. Animation clips used within the Animator Controller need to have Muscle Definition set up in the Asset Importer Inspector
everytime i set my animation to loop, it just keep moving i have turned off the 'play automatically', but once i pressed the w key, same problem appears, can anyone help??? thx!!
Assets/walkingscript.js(6,3): BCE0144: 'UnityEngine.Component.animation' is obsolete. Property animation has been deprecated. Use GetComponent() instead. (UnityUpgradable)
in my unity. it says. there is no animation attached to the G36C game object but a script is trying to access it. so every time i click W in playmode its going to be breaked. whats wrong
i did what you said in the vid but mine wont stop playing the animation, i put walk.js into 1fps hand and when i click play it dosent stop playing HELP
I had the same thing I have this as my script { if(Input.GetKeyDown("w")) { // Plays the Walking animation - stops all other animations animation.Play("Walking", PlayMode.StopAll); } } Then it says this Assets/Walking.js(5,46): BCE0044: expecting :, found ';'. Assets/Walking.js(2,27): UCE0001: ';' expected. Insert a semicolon at the end. Assets/Walking.js(2,2): BCE0043: Unexpected token: if.
Hello i need some help, i get this error when i press W. MissingComponentException: There is no 'Animation' attached to the "WPN_AKM" game object, but a script is trying to access it. You probably need to add a Animation to the game object "WPN_AKM". Or your script needs to check if the component is attached before using it. walkingscript.Update () (at Assets/Weapons_ChamferZone/AKM/walkingscript.js:6)
To stop the anim make a javascript and write: function Update() { if(Input.GetKeyUp("w")) { // Plays the Stopanim animation - stops all other animations animation.Play("Stopanim", PlayMode.StopAll); } } *Stopanim in the name of the animation where nothing move
I FIXED THE NON-STOP LOOP Type in a new java file function Update() { if(Input.GetKeyUp("w")) { // Pauses the walking animation - stops all other animations animation.Stop("walking anim"); } } then drag it into the same file as the other 1
My animation doesn't play anymore. First time, it played, but it played all the time. So I deleted it and every time after that it hasn't worked. My script looks just like yours (except the name of my animation is "walkanim"). I put them both in my ACW-R but it doesn't play the animation anymore. Help?!
There is an error displayed at the bottom now saying that there is no animation attached to the object and the script is trying to access it, but I have dragged the animation to the object multiple times, so I am confused why it isn't working...
hey man i follow your tutorials and everything is going great except for the jumping animation: once it plays in the game the weapon remain high and don't return to his original position. could you please help me?
i keep getting this error please help The animation state WalkAnimation could not be played because it couldn't be found! Please attach an animation clip with the name 'WalkAnimation' or call this function only for existing animations. UnityEngine.Animation:Play(String, PlayMode) WalkingScript:Update() (at Assets/FPS Assets(TUT 3)/WalkingScript.js:6)
NINJA BOY (please read) My FPS_hand keeps dissapearing. I don't know what's wrong, I parented them both (tried hand in M4A3 and M4A3 in hand) and hand in m4a3 is the only that seems to work with your script, but the hand dissapears.
Hi, I'm new to unity and I've been following along with your tutorial, it's great so far, however, it seems that even after visiting the forum and attaching the two scripts to the parent object, I still cannot seem to make it stop. Can anyone help me out?
HELP!!!!!!!!!!I have everything right but for some reason it won't play the animation I went through this for about an hour now please help I know everything is correct I even made two new animation so I got the name right and I checked over the script a lot so I'm pretty sure it's right please help
For all people having trouble with stopping animations, there's a reason why I made numerous other tutorials continuing this series. Just continue to tut 4, and I explain stopping animations in that tutorial or the fifth one.
Th reason anon says that it because he was'nt smart enough to figure out how to watch tut 4
No the reason I say that is because you dont cover it in either you fucking spastic. Go on and find it and put the time in and which one it is, you don't even know what you cover in your "tutorials"
his tutorials isnt Perfect, but they are good. I know that many People have trouble, but it isnt easy having 10 000 People asking for help. You can easily find help on forums, or even the comments of the video :D
Well they obviously didn't fucking work because I've tried that already, instead I got some dumbshit fuckwad reply to me and then when I ask him where in the tutorial it was he sends back some ambiguous reply not answering my actual question. Stop wasting my fucking time.
I have to admit myself, this isn't a perfect tutorial at all. In fact it has the most flaws out of all my tutorials. I noticed this argument between the two of you, and I'm just going to jump in and say to you 'Anon amous,' that if you visit my forum, i guarantee that the problems you are facing are probably already resolved within the threads. But it seems you aren't interested in any of my content, which is totally fine! So find another unity tutor, and i wish the best of luck in you're game. I reccomend you check out eteeski tutorials, or quill18creates. Have fun ;)
OMG, this Unity series is the best i´ve ever watched on the internet, it helped me so much thx
If anyone has problems with the Animation not working and are using Unity 5. Here is the correct script needed for this tutorial:
function Update () {
if (Input.GetButton("Button Name Goes Here.")) {
GetComponent.().Play("Animation Name Goes Here", PlayMode.StopAll);
}
}
You can find all the buttons names and what they do in the Edit/Project Setting/Input under the Axis drop down box.
Hope this help you if so then like the comment so that more people can see it and not have the same problem that we had.
It helped but the animation starts even without me pressing "w".....
this is the first scripting tutorial video i've seen that actually takes time to explain what's going on. will be waiting for part 4, hopefully you will upload it soon.
MissingComponentException: There is no 'Animation' attached to the "1FPS_HAND" game object, but a script is trying to access it.
You probably need to add a Animation to the game object "1FPS_HAND". Or your script needs to check if the component is attached before using it.
walkingscript.Update () (at Assets/walkingscript.js:6)
WUT DOES THIS MEAN
You are a life saver!!!.... I was trying to get, movement, etc...,now I can make my won thanks to you and its easy!!!!!!!! Thank you!!
Guys, I figured out the problem with the animation not playing!
Okay so first, select the item you created an animation for, then click add component > miscellaneous > animation, click the circle and select your animation. Play the game, if you get a "Animation must be set to legacy" error follow these steps.
1.View your animation in the inspector
2.Click the drop down next to the lock (right above your animation name)
3. Select debug
4. Set the animation type to 1 (instead of 2)
Hope that helps!
thank u so much
you are a hero bud
to stop animation you do the following :
-add one animation imperturbable called " stop "
-and add the following script into ......
function Update()
{
if(Input.GetKeyUp("w"))
{
// Plays the stop animation - stops all other animations
animation.Play("stop", PlayMode.StopAll);
}
}
it work :D
+Sơn Evil thank you
this tutorial is AWESOME!!!
you explain it in a way that is easy to understand, unlike other tutorials
Thanks!
i make the animation but the script doesnt work. the animation keeps replaying forever and not when i press "w"
Uncheck play automatically
Continue the tutorial series, in the 4th or 5th tutorial, I explain how you stop animations.
Ok I will, thankyou
***** where does it say 'play automatically'?
***** Yeah
I love your tutorials! You have really helped in getting me started in Unity and understanding the GUI. At 5:48 that's a comment, it has no influence on the code itself. :P Keep up the good work.
Thanks so much, this tutorial is really helpful and the fpskit is amazing! Please make more tutorials!:)
if you press the w and it doesent play the animation make sure that you didnt made a big W in the script instead of small w. if your arms dissapear try to put the weapon in the arms folder instead of arms in the weapon folder :-)
This game is turning out realy good! thnx for the help
You rock thank you so much I tip my hat to you..... well if I had a hat and could see u but thanks I really could not find anybody with good fps tutorial again thank you you are super kind to do this stuff for us when I start making my game and when I'm finished I will see that that you get it for free because of all the help you gave me thank you
I know a solution to the problem where it says there is no animation attacked to the M4A3 but the script is trying to reach one. You must click on the gun, then go to component>add. Search animation, then add that component. Select the animation you want to use. If it says the animation needs to be marked as legacy after that, click on your animation, right click the inspector and set it to debug mode. Then set the animation type to 1
Hey, i have a weird problem!!! I make this:
function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walking animation - stops all other animations
animation.Play("walking", PlayMode.StopAll);
}
}
But when i hit play, my character just does the animation whatever i do :(
SAD!!!!!!!!!
I have the same problem
Hey when my walking animation is playing and i let go of the "w" key my character keeps playing the animation.
Impressed !!!
nice job this really makes me want to try :)
Thank you so much! Your an amazing person i love your tutorials no one can make better tuts then you! I SUBBED :D.
***** why when i make the script and apply it to what is parented to the camera it plays the animation without me pressing "w" learn to script
I think it would be really great if you actually showed us how you create all those scripts, because in the end we just want to learn how it all works so that we can create whatever we want in the future - we can't rely on your ready made scripts all the time)
thanks a lot .I learned lots of this I could you use in my own game.
So i did everything for the walk animation, the one in this video, many others, i even went on the forum and found a "solution" to the issue, yet still, my walking animation wont work correctly...
function Update()
{
if(Input.GetKeyUp("w"))
{
// Plays the _____ animation - stops all other animations
animation.CrossFade("idle");
}
}
i am trying to use this yet it wont stop the animation whatsoever...
Dude, your Tuts have helped me ALOT! Thanks bro :'-) You're awesome!
Thanks man really love your series!
the animation starts without me pressing a button... help?
I cant figure it out either!!!!!!!!
Make off "play automatically"
Hakan Arik where does it say that?
***** of what object
hi..thanx 4 the tutorials..i have a problem...my gun seems to go through the small hills that i have created while climbing them....what is the solution?
Tut 4 plz being waiting a long time :)
thanks i will watch it when you upload :3
Hi when i press w it says "The animation state Walkinganimation could not be played because it couldn't be found" help pls
Yes, but it works now.
missingcomponentexception there is no 'animation' attached to the M4A1 gameobject... helpppp
Aizeah Mangrobang Probably too late, just watching these videos in my spare time. The gun asset is called the M4A3 so that would be your problem. You can either change the script or simply rename the game object to M4A1.
Aizeah Mangrobang Probably too late, just watching these videos in my spare time. The gun asset is called the M4A3 so that would be your problem. You can either change the script or simply rename the game object to M4A1.
so kinda this tutorial, kinda the next one, but I'm trying to use a sword, and whenever I try to animate the sword swings, it looks like the rotation in each frame is being changed, but when I replay the animation every keyframe resets to the original position
First off big thanks for your tutorials, Im trying to follow them as best as I can, however Im stuck at loop animation, my animation does one loop and that's it, even though I have selected "loop" in wrap mode, thanks
Hey Ninja your tutorials are awesome. Can you do multiplayer with Unity?
How would I know how to dowldload animation set up
Alright, so before you create the animation, you name the file "walkanim2" yet when you're in the walkingscript script you enter the name "walkinganimation". What's all that about?
my object disapears when i play,and lag when i make my object small,and put close to the fps character
OMFG this is a problem that I need you to fix. I make a animation named it "walkinganimation" put it into a script and all of that but I go to play the animation and nothing hapens. PLEASE get back to me ASAP!!! I am litterly raging I tryed 10 times already to fix it.
Look up unity Legacy animations 4.3
It says 'all compiler errors must be fixed before entering playmode' and the scripting was
function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walkinganimation animation - stops all other animations
animation.Play("walkinganimation", PlayMode.StopAll
When I make a walking animation for the gun I'm using it sets the animation as default and just keeps playing the animation in a constant loop. Using the script that makes it play an animation doesn't work, it just continues to play through the animator. The walking animation was set to default when I created the animation automatically. I tried fixing this by making an idle animation, but again it just loops the idle animation and doesn't play the walking or reloading animations when the script is set up properly.
same problem id u figure it out??
If you make a code that says when the button is up play an idle animation that should fix it.
yolahola1 did u by chance do that??? I cant make it work could u send me the script if u did
ChandlerGuy I'm not entirely sure if I still have the script. I think I actually looked at a different video after realizing this one didn't all the way.
help !!
The animation state walking could not be played because it couldn't be found!
Please attach an animation clip with the name 'walking' or call this function only for existing animations.
Thank you you helped me alot!
MissingComponentException: There is no 'Animation' attached to the "M4A3" game object, but a script is trying to access it.
You probably need to add a Animation to the game object "M4A3". Or your script needs to check if the component is attached before using it.
walkingscript.Update () (at Assets/walkingscript.js:6) help meee
Helped me so much subscribed :).
EVERYONE I FIXED THE ANIMATION PROBLEM!
OK FIRST MAKE A IDLE ANIMATION WHERE THE GUN STANDS STILL!
Call it "idle"
then use this script i threw together:
function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walkanimation animation - stops all other animations
animation.Play("walkanimation", PlayMode.StopAll);
}
if(Input.GetKeyUp("w"))
{
// Plays the idle animation - stops all other animations
animation.Play("idle", PlayMode.StopAll);
}
}
when i try to play it says: All compiler errors have to be fixed before you can enter playmode!
DO NOT MERGE IT INTO 1 SCRIPT FOR STOPPING IT!!! There's a reason why I made 3 more tutorials after this one.. I explained everything including how to stop animations in the 4th or 5th tutorial, so just continue the series, and all problems should be fixed!
Please calm down mister NinjaBoy it worked perfectly for me, i was just sharing my works in the comments. I will take a look at the next tutorials, relax.
***** Haha i just tried to really emphasize how much i don't recommend merging scripts, but if it worked for you thats great! Haha dw I ain't angry, did I sound angry? Maybe it was the caps lock lol :)
Ya you did, lol, it's ok np.
Ya, it worked pretty good for me so.. ya.
But thanks for the warning just incase.
:)
Problem#1: when i click on the animation in the project view then the inspector does not show "wrap mode" option but a set of options such as loop time etc.
Problem#2: when i create the animation script and ad it to the fps controller's gun, the unity editor bricks as soon as i press "w". then i have to use windows task manger to force close it. have tried both C# and JS.
Please help!
Ok, so my walk animation works fine in the scene mode, but when I switch to game mode, nothing happens (the hand and gun do not move like they are supposed to with the animation). Has anyone else had this problem? I have followed step by step since tutorial 1 and I am stuck here (using Unity 4.1).
i have a problem with the walking animation, i created it and followed the steps in the vid and added the script and everything, but when i go in play mode the animation plays without stopping even when i didn't press W i tryed to fix this problem for days and i couldn't, so can u please help me
i need help i have this error
Animation clip 'walkinganim' is not retargetable. Animation clips used within the Animator Controller need to have Muscle Definition set up in the Asset Importer Inspector
When I open the animation window, it doesn't show the gun nor hand. how do I get the gun and hand to show in the animator
i don't need to press "w" it just plays my animation
I did everything right but when I start the game the animation plays in an endless loop. :s Please help!
everytime i set my animation to loop, it just keep moving
i have turned off the 'play automatically', but once i pressed the w key, same problem appears, can anyone help??? thx!!
Assets/walkingscript.js(6,3): BCE0144: 'UnityEngine.Component.animation' is obsolete. Property animation has been deprecated. Use GetComponent() instead. (UnityUpgradable)
I cant get the animation to work please Help !!
read my comment!
in my unity. it says. there is no animation attached to the G36C game object but a script is trying to access it. so every time i click W in playmode its going to be breaked. whats wrong
i did what you said in the vid but mine wont stop playing the animation, i put walk.js into 1fps hand and when i click play it dosent stop playing HELP
The script doesn't work for Unity 5 :( Please help if you have converted it to the Unity update successfully.
When i animate the running and then hit "W" I works perfectly but when i let go of the "W" it keeps playing. How do i fix this?
I had the same thing I have this as my script
{
if(Input.GetKeyDown("w"))
{
// Plays the Walking animation - stops all other animations
animation.Play("Walking", PlayMode.StopAll);
}
}
Then it says this
Assets/Walking.js(5,46): BCE0044: expecting :, found ';'.
Assets/Walking.js(2,27): UCE0001: ';' expected. Insert a semicolon at the end.
Assets/Walking.js(2,2): BCE0043: Unexpected token: if.
Why do you have the animations in separate scripts? I've been developing games for a while now, and it's just more work to do it this way.
I did everthing right and when i press the key to activate the Animation it stops playing the game, help?
Hello i need some help, i get this error when i press W.
MissingComponentException: There is no 'Animation' attached to the "WPN_AKM" game object, but a script is trying to access it.
You probably need to add a Animation to the game object "WPN_AKM". Or your script needs to check if the component is attached before using it.
walkingscript.Update () (at Assets/Weapons_ChamferZone/AKM/walkingscript.js:6)
To stop the anim make a javascript and write:
function Update()
{
if(Input.GetKeyUp("w"))
{
// Plays the Stopanim animation - stops all other animations
animation.Play("Stopanim", PlayMode.StopAll);
}
}
*Stopanim in the name of the animation where nothing move
mine still doesn't work. It says tat there is no animation attached to the gun
I FIXED THE NON-STOP LOOP
Type in a new java file
function Update()
{
if(Input.GetKeyUp("w"))
{
// Pauses the walking animation - stops all other animations
animation.Stop("walking anim");
}
}
then drag it into the same file as the other 1
My animation doesn't play anymore. First time, it played, but it played all the time. So I deleted it and every time after that it hasn't worked. My script looks just like yours (except the name of my animation is "walkanim"). I put them both in my ACW-R but it doesn't play the animation anymore. Help?!
There is an error displayed at the bottom now saying that there is no animation attached to the object and the script is trying to access it, but I have dragged the animation to the object multiple times, so I am confused why it isn't working...
same exact thing happening to me! Do you know why?
Every time I add the arms they don't have any textures, they're grey and model looking, how do I get the skin and clothing to appear on the arms?
hey man i follow your tutorials and everything is going great except for the jumping animation: once it plays in the game the weapon remain high and don't return to his original position.
could you please help me?
i keep getting this error please help
The animation state WalkAnimation could not be played because it couldn't be found!
Please attach an animation clip with the name 'WalkAnimation' or call this function only for existing animations.
UnityEngine.Animation:Play(String, PlayMode)
WalkingScript:Update() (at Assets/FPS Assets(TUT 3)/WalkingScript.js:6)
Animation won't work, i have done everything right but when i hit play, it automatically starts!!!!!!!
i keep getting when i go into game it says,could not plat because the animation was not found please help!!!
I do the scripting process and animation floor that you use most when I press w it does not work
Maybe... i don't know if it is the editor or not but we can give it a try
help! when i animate the walk, it gives me this error.
Assets/Standard assets/walkingscript.js(8,1): BCE0044: expecting }, found ''.
when i open the animation tab it say no animatable object selected
this helped a lot thanks
i have a hand with tonly white colour and i have the texture of it so how to put the texture to the hand like you?
Friend how can I use an animation of an already animated model in a template that is still not animated? This would help me a lot. it is possible ?
I animated a really good-ish animation but its too slow. Can I speed it up without starting over again?
when i press w nothing happens.i followed every step but it still doesn't work. PLZ SOMEONE HELP ME!!!
Hey guys, when I press 'w' or space button, my game pauses!
Why is that?
And my animation starts automatically, too.
Plz help :(
when i select the animation i made i dont have those options to set wrap mode
NINJA BOY (please read) My FPS_hand keeps dissapearing. I don't know what's wrong, I parented them both (tried hand in M4A3 and M4A3 in hand) and hand in m4a3 is the only that seems to work with your script, but the hand dissapears.
just have a question... i make my gun animations and running animations in cinema 4d. is there a way to import it from there into unity
how do you load the material into the arm? I dragged it in, but it wont show...
{ if(Input.GetKeyUp("w")) { // Pauses the walking animation - stops all other animations animation.Stop("walking anim"); }
}
can you make a download of your walking and jumping one it does not work with me ?
Cool hands u got!!
is there a way to give your character a playermodel, so you dont have to use the css arms?
every time i do a script thy say that you should delet any errors what should i do
Hi, I'm new to unity and I've been following along with your tutorial, it's great so far, however, it seems that even after visiting the forum and attaching the two scripts to the parent object, I still cannot seem to make it stop. Can anyone help me out?
when idrag the animatio nsetup to the gun it says i have to compile the script errors or something?
I can get to Window Animation but then everything is locked!
HELP!!!!!!!!!!I have everything right but for some reason it won't play the animation I went through this for about an hour now please help I know everything is correct I even made two new animation so I got the name right and I checked over the script a lot so I'm pretty sure it's right please help
my texture doesnt work for the css hand please help
thanks
When i tur non animation i can't do anything! is that for full version? :(
wow, this will be helpful! ;)
Should I make the animation on the gun, main camera or hand?