Enemy navigating around the wall
I have an enemy that follows the player, and I want them to move around walls. However, without being able to see where the wall is that they collided into, I'm having troubles.
I don't need exact directions, I just want to hear how you did or might go about this? Thanks!
I don't need exact directions, I just want to hear how you did or might go about this? Thanks!
Comments
Player
-------------------------------------------
<----------Enemy---------->
Like that.
Hope that helps!
-Gamexcb
Place them as needed along edges & walls. So, right before it would normally hit the wall it will start moving up. Obviously you need to set rules in your actor. When collide with up Change velocity (or whatever move command you use), same with the other directions. That should at least give you some basic AI movement.
-JGary
thanks in advance