Pawn is not moving as far as I want to

I’m trying to make a retro game and I want enemies to randomly move a single direction after a delay. When I try to test it the pawn only moves by an insignificant amount. Can anyone tell me what the interaction between Delay and add Movement input is and if I should even be using it to control enemy movement.

The “scale” in add movement input is normalized 0 to 1. The “max walk speed” value in the character movement component determines how fast 1 is. I don’t know about that delay node, it seems like it would just cause add movement input to tick one time every 5 seconds.

1 Like

Hey there @MutenYoshi! Welcome to the community! So as Jay explained, this is only firing movement for one tick after 5 seconds. You don’t want to use Delays on tick to begin with as they can cause all sorts of problems as it doesn’t stop the execution of other ticks in the meantime, so anything can happen.

A quick setup would be something like this:

Starts moving after 5 seconds, stops after 5, then repeats. You would also have to do something to change your directions depending on how your game moves.

2 Likes

I tried you’re method and it works just like I wanted to. Thank you so much.