LOS and picking instances of object

For questions about using Classic.

Post » Sun Apr 11, 2010 9:08 pm

I found a cool example from Rojohound on RTS and pathmovement and chasing a player using LOS.


I wanted to use something similar for the network demo I'm making so I added a couple of instances of the player and it completely breaks LOS detection?

However, when I destroy the original sprite then everything works fine. Is there a way to keep the original sprite and still have correct LOS?

It requires Rojohound's path movement plugin.
http://www.box.net/shared/l6xxpxjr3u
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sun Apr 11, 2010 9:17 pm

If your not terribly worried about being able to see around other objects, and you dont care if the detector can see in 360 degrees then distance(), and picking via private variable should work.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Apr 11, 2010 10:28 pm

thanks newt, for now I decided to just destroy the object on startup. I wanted to keep the ability for the players to hide behind walls.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests