Enemy AI
Brundi
Member Posts: 60
Hi, for example let's say I'm trying to make a top down rpg where the enemy's swarm at you. I have made the enemy's move to my position already using constraining but I can't seem to figure out how to make them move around an obstacle like a little 5 *20 wall to get to the person
Any answers would be great
Thanks, Brandon
Comments
Can't say I've done much with enemy behavior, but on a quick thought, my option would be to create a collision rule. Probably constrain a collide box with only one surface protruding on the front side of the actor, and have it trip a boolean "Blocked" if it touches a wall. The enemy then changes direction to either side until its no longer True.