- Home /
Question by
fahio12 · Apr 13, 2016 at 10:16 AM ·
animationscripting beginner2d animation
Animation while walking
I have a script to move my character (2D) , but I want to animate him so when he walks it plays animation. Please give me a simple script I am kinda of new in scripting, Thanks. :D
Comment
Answer by gaurangranoliya · Apr 13, 2016 at 11:41 AM
Use...... gameobject.Getcomponent().Play("Your Walking Animation name"); OR gameobject.Getcomponent().CrossFade("Your Walking Animation name");