![]() ![]() You can also use an Animator Event (or use a script) to play audio clips for the footsteps on the ladder when climbing up/down (by checking the bool). Then, using a script (or an animation) you also move the character's Transform up when it's climbing up, and down when climbing down. If neither, the default animation 'climb idle' animation is played in a loop. Create a new Animation Controller to handle JUST ladder climbing, for example an Animation Controller named 'ClimbingLadder' that has bool parameters for pressing 'UP' and pressing 'DOWN', and add the animations to it so that it will play the 'climbing up' animation if (Animator anim.GetBool("climbingUp")) and play the 'climbing down' animation if (Animator anim.GetBool("climbingDown")). Also a 'climbing idle' animation for when the character's stopped. If you can't find a 'climb' animation you can edit the hands on a 'crawl' animation, they are similar. Get animations of a character climbing a ladder, climbing up and down, or just play the animation in reverse. Click to expand.Maybe if I make some code for it later I'll post it, but to make a ladder climbing system, there are many methods in Unity, but for an eassy to understand example, you can do something like this: ![]()
0 Comments
Leave a Reply. |