4.4.1 - Add Idle to/from Run Transitions

Learn how to add idle to/from run state transitions your First Person Shooter character's animation state machine.

Windows
MacOS
Linux

During this step, we're going to set the idle to and from run transitions so that when your character starts moving, the state machine will transition from Idle to Run.

  1. Drag a wire from the Idle state to the Run state to create a transition.

    WireIdletoRun.png

  2. Double-click the transition to edit it.

  3. Control-click on IsRunning in the My Blueprint tab and drag into the graph to create a Get Is Running node.

  4. Connect the output pin from the Get Is Running node to the input pin of the Can Enter Transition pin on the Result node.

    IsRunningtoResult.png

    When your character stops moving, the state machine should transition from the Run state to the Idle state.

  5. Return to the Arms State Machine graph and drag a wire from the Run state to the Idle state.

    WireRuntoIdle.png

  6. Double-click the transition to edit it.

  7. Control-click on IsRunning in the My Blueprint tab and drag into the graph to create a Get Is Running node.

  8. Drag off the output Boolean pin on the Get Is Running node and create a Not Boolean node.

  9. Connect the output pin from the Not Boolean node to the input pin of the Can Enter Transition pin on the Result node.

    IsNotRunningtoResult.png

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback