Enemy gets stuck when moving

Hi,

I’ve recently followed this guide on YouTube to create a basic enemy that moves.

The only issue I am having is that the enemy gets stuck in the corner of this platform when it should be going back and forth to the edge and back. I noticed if I change the ‘Get Actor Forward Vector’ ‘X’ to anything lower than about 170, it just flips its direction continuously without moving, if I make it any higher, the enemy will walk over the platform ends and off the map.

enemy bp

Uploading: CrabStuck.mp4…

I built the map ends up 1 more block and reduced the X value to 20 instead of 180 and it works well, if I make the wall ends slightly lower the issue comes back but I can live with it for now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.