Language:
Page Info
Skill Level:
Engine Version:

4.4.1 - Add Idle to/from Run Transitions

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