FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Walking Animation Script(Help)

Share

descriptionRe: Walking Animation Script(Help)

more_horiz
Yes. That was a stressful two days

descriptionRe: Walking Animation Script(Help)

more_horiz
@FainterStreaker wrote:
Yes. That was a stressful two days

Very Happy

_________________
Game Developer
YouTube Channel: https://www.youtube.com/channel/UCra7PcIl3WqSsIChgIAmWrA
Website: http://masterdevelopers.altervista.org/

descriptionRe: Walking Animation Script(Help)

more_horiz
@MisterNinjaBoy wrote:
It essentially does the same thing. Also developer 23, I reccomend you use animation.crossfade insdead of animation.play.
i am having problems with animation is it possible to download one if so can you give me one?

descriptionRe: Walking Animation Script(Help)

more_horiz
@FainterStreaker wrote:
Yes. That was a stressful two days



So... I'm in your shoes, what did you do to fix it? Razz

descriptionRe: Walking Animation Script(Help)

more_horiz
same happend to me i reset the animation script by editing it in mono createing new and NOT COPY PASTE type it in, then go to main camera find animation at the right side bar and click reset to prefab, drag script in, initilize it if it says not initilized, done Very Happy

descriptionRe: Walking Animation Script(Help)

more_horiz
@FainterStreaker wrote:
Here is the video to my problem:
https://www.youtube.com/watch?v=HaGxoRZi8E4&list=UU03K626PqGtDR9ucffWfpLA


You have to mark the animation as a legacy animation. Right now it is probably a generic.
Select the animation clip in your Project > Go to the Inspector tab and clip on the “hamburger (3 line)” button > Then select “Debug”.
The inspector options will change into debugging mode and there set the “Animation Type” from 2 to 1. Set the inspector mode back to “Normal” through the hamburger button and it’s fixed! No more legacy warnings!

Here is a visual for you, just in case you didn't get it..

descriptionRe: Walking Animation Script(Help)

more_horiz
play animation with Transform.animation.Play();

descriptionPLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!

more_horiz
it wont work for me I add it to my gun it wont play the animation please help!!!!!!!!!!!!!!

descriptionRe: Walking Animation Script(Help)

more_horiz
@developer23 wrote:
I use this Script created by me Very Happy:


FIRST SCRIPT (PLAY ANIMATION):  

Code:

var AnimationClip : AnimationClip ;
function Update() {

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

}





SECOND SCRIPT (STOP ANIMATION):

Code:

var AnimationClip : AnimationClip ;
function Update() {

 if (Input.GetKeyUp (KeyCode.W))
{
    animation.Stop();
 
}

}







Where do I add the animation in this script?

descriptionRe: Walking Animation Script(Help)

more_horiz
Ok, I get it now sorry
Permissions in this forum:
You cannot reply to topics in this forum