Enemy AI???
I am making a remix of the classic game Berzerk (1980), and I need some help making the enemies aim at me and avoid walls. I want some challenge like the original, but I can seem to do it. Can someone help me???
Best Answer
-
Photics Posts: 4,172
Wow... that's a lot to explain here. So, here's a little bit of information to help you get started.
Use game attributes to track the position of the hero. Then, the enemy actors can react accordingly. With the Move To and Rotate To behaviors, you can make the enemies turn towards and move toward the hero.
Since Berzerk has walls, it gets tricky. Use an invisible line actor that connects the hero with a wall. If the line actor overlaps with a wall, then the enemy should move towards a waypoint. Otherwise, move towards the hero.
My work with enemy AI is shown in a video here... http://photics.com/bot