How to make random movement in blueprint?

Hi, i was wondering if anyone could tell me how to add random movement to a character I made. My character is in the side scroller template ( this is an enemy character, not the player character ), and i want it to simply move from left to right at random times, and random distances.

Thanks!

You need a couple things. :slight_smile:

If this BP has a skeleton you could create 2 target points on each side of him use move to location to both of those.
Have an event tick setup to turn a switch variable on and off. A boolian. If it’s off go to one target point if it’s off go to the other.

set a delay after the event tick before the switch. Drag a wire from the input of the delay and type random float In range. You can set it to be a random delay every time in a range of your choosing.