Hey guys,
I'm working on some AI and was wondering what the best way to check for a clear path is?
For example:
IF (no solid objects between Player and Enemy) {
set Enemy.Angle = Player.X, Player.Y;
} ELSE {
set Enemy.Angle = Random(0, 360);
}
Excuse my pseudo PHP syntax, it's just easier to explain that way xD
Thanks!
Ryan