How do I see the line of sight?

Get help using Construct 2

Post » Sun Jul 31, 2016 11:27 pm

Probably not a very good question, but I'd like to know if it's possible for the dev to see the line of sight?

For example, if I set the Line of Sight behavior on an object to a range of 500 and then set the cone to 60 degrees, is there any sort of way I can see a visualization of that in the editor?

To be clear, I don't want the player to see it, only the dev (me) in the editor; the actual Construct 2 program.

Thanks in advance!
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Sun Jul 31, 2016 11:44 pm

You can add an animation frame to your character for debugging purposes only. Just replace the character sprite on that frame with a circle with width/height of range*2. Similar idea if you want a cone.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Sun Jul 31, 2016 11:47 pm

oosyrag wrote:You can add an animation frame to your character for debugging purposes only. Just replace the character sprite on that frame with a circle with width/height of range*2. Similar idea if you want a cone.


Is there really no other way to do it?
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Mon Aug 01, 2016 12:49 am

I don't think three is anything built in. What would be your usage?

Actually I would probably have a seperate dedicated semi transparent sprite with angle markers I would use as a reference for ranges when doing level design. Just drag it around to wherever i need it and destroy on start of layout.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 27 guests