- Home /
A 2D toolkit animation question
Hey, I have made a simple script function Update()
function Update()
{
if(Input.GetButtonDown("foward")
}
Animation.play("SludgeWalk")
}
}
But I dont have a place to select the animation I want to play, also 2D toolkit animations seem to be hidden, they dont appear in the 2D toolkit folders can someone please help me? I need it to play the SludgeWalk script when I press "d" (forward is set as "d")
Comment
try spelling the event correct first: if(Input.GetButtonDown("forward") not foward. :o)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
2D sprite that always faces the player? 1 Answer
Can Someone help me with a script? (2D) 0 Answers
Script gives wrong rotation. 1 Answer
How to get around adding loads of "if" commands in my script 2 Answers