Trouble with LOS and origin points.

Get help using Construct 2

Post » Wed May 11, 2016 6:38 pm

I am having trouble getting Line of Sight to see the object if half of the sprite is visible. It seems to be connected to the origin point. When the origin point is shifted by 1 pixel, it is detected.

How do I make ANY part of the sprite visible in Line of Sight ?
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Mon May 16, 2016 4:01 pm

Maybe use an invisible "lineOfSight" sprite and do an overlap check?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Mon May 16, 2016 5:47 pm

I was able to make a make it work another way on my project. I'll have to try your suggestion. It sounds like it will work but it will significantly increase the number of objects that I have to deal with.

Looking through past posts, it seems that the origin point is the only part that LOS looks for.
B
40
S
18
G
5
Posts: 98
Reputation: 5,651


Return to How do I....?

Who is online

Users browsing this forum: DiabloOvermind, Mayfly, tarek2 and 14 guests