Create rule [State Machine]

71132-help+!!.png

idle to walk rule

There is not enough information to help you with that… In my case I share variable IsMoving from character blueprint and I’m just checking it.

I am not sure if I understand your problem. But in any case, if what you want is to figure out a way to transition from an idle state to a moving state, it’s simple. What you need to know is if your character has a speed greater than zero.

How to obtain the character speed: Right-click on the graph section (not in the state machine graph, the blueprint one, inside the AnimBP I guess), select Get Player Character node (I would promote this reference to a local variable for further use), and from the output, select Get Movement Component node. The movement component stores your Velocity (I think this is the correct name), but it’s a Vector. To obtain the speed, from your Velocity vector, find the Length node. A vector’s length is its absolute value (briefly, the velocity vector represents the direction you are facing, the bigger the length, the bigger your speed is in that direction). Compare the vector’s length with 0. If it’s greater than 0, then you are moving, so you should set the transition to happen (probably with a true/false variable).

Sorry for being all text and no pictures, but I am not at my pc, so I cannot take some screens to give a better example to you. I hope someone complements this with more information!

Cheers

my character can’t move