How to Trigger Something in Level BP with Character Movement?

I don’t know if it’s the most efficient way, but it works. Here’s an example

This is Event Tick in Character Blueprint:

We have 3 steps:

  • 1st we set isMoving to true if the character speed is > 0;
  • 2nd, if the isMoving is same as the TempIsMoving(another variable we created just to help us keep track if the “isMoving” changes) we call the Event Dispatcher “Change Moving”
  • 3rd step is to reset the TempIsMoving variable

This system keeps track of character isMoving and calls an Event Dispatcher whenever that variable changes.

This is Level Blueprint Begin Play event:

It binds the Event Dispatcher to the CustomEvent_0. Branch True gets fired when the character starts moving, False gets fired when the character stops moving. (Just connect it to your desired Timelines, here I created a simple image that changes opacity from 1 to 0 and vice versa)

Hope that helps.

1 Like