Hello.
I’m making a 2D game and I don’t want to make a state for each of the directions in the Animator.
Does each state only allow for one motion?
My player can move in 8 directions and I don’t want to create and drag arrows around each state.
Hello.
I’m making a 2D game and I don’t want to make a state for each of the directions in the Animator.
Does each state only allow for one motion?
My player can move in 8 directions and I don’t want to create and drag arrows around each state.
I should’ve put this post in the Animation section.
Anyway, I ended up using blender. I made a 1D blender and passed in my direction as the threshhold. It is much more clean because each state is a blend of different directions. Also, now I only have one transition for changing states as opposed to 8 for each direction.
If anyone needs help, I can try.
It quite interesting for me too. Can you recommend good resources for the beginners like me ?
I used this video:
It teaches you how to make a state for idle and a state for running. Then it teaches you how to use a blend tree for each state so that each state has motion in 8 directions.
I used the blend tree a little differently. Instead of using 2D freeform Cartesian, I used 1D. 1D is enough for me because it allows me to pass in one variable which is the direction.
Using blend tree is much easier than making multiple states for each direction because you don’t have to copy all of the transition arrows for each direction.
You’d think that just clicking a checkbox like ‘use configurable character controller’ would automatically hook up your object to standard input keys allowing you to move the character in seconds… instead of all this gubbins. UNITY!
@imaginaryhuman_1 maybe you can create a custom component for them to control 2d 8 direction movement + animation
I’m fine with using the animator as a state manager and then using blend trees to decide which motion to use for a given direction. If it works and it seems “built-in” enough, then I’ll use it.
I’m beginner in animation programming, please send me some good software names for beginners such as me