"Is There a Solid Between"

Get help using Construct 2

Post » Wed Aug 01, 2012 3:14 am

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
B
16
S
6
G
4
Posts: 23
Reputation: 4,066

Post » Wed Aug 01, 2012 3:37 am

Uhhg, forgive me again. Deeper searching leads me here:

http://www.scirra.com/forum/c2enemy-line-of-sight_topic45095.html
B
16
S
6
G
4
Posts: 23
Reputation: 4,066


Return to How do I....?

Who is online

Users browsing this forum: spacedoubt and 2 guests