How do I check sprite's visual range? (SOLVED)

Get help using Construct 2

Post » Mon Feb 02, 2015 11:48 am

I'm working on a top-down shooter style game and I want to check if the enemies can see the player. I'm using the line-of.sight behaviour, but i want this active only when the player is between some range of the enemy's orientation angle.

I've been trying to do this comparing the enemy's angle and the angle between the enemy and the player, but I've found no solution. Could anybody help with this?

Thanks!
Last edited by Sanju83 on Tue Feb 03, 2015 9:39 am, edited 1 time in total.
B
12
S
2
G
1
Posts: 32
Reputation: 756

Post » Tue Feb 03, 2015 9:39 am

I found the answer in the forum. If anyone is interested:

test-for-object-within-angle_t66420

Thanks.
B
12
S
2
G
1
Posts: 32
Reputation: 756


Return to How do I....?

Who is online

Users browsing this forum: SputnikCZ and 3 guests