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
46
S
20
G
6
Posts: 115
Reputation: 6,685

Post » Mon May 16, 2016 4:01 pm

Maybe use an invisible "lineOfSight" sprite and do an overlap check?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

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
46
S
20
G
6
Posts: 115
Reputation: 6,685


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests