Invert Line Of Sight Condition

Just started using Construct 2? Post your questions here

Post » Wed Dec 24, 2014 10:13 am

Things are different when there are multiple objects
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Wed Dec 24, 2014 12:38 pm

Indeed things are different.
You need to separate things for each "Player" instances.

Thanks to instance variable for example, and making sure to have a for each loop so that each "Player" instance is checked out.
You do not have the required permissions to view the files attached to this post.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795

Post » Thu Dec 25, 2014 10:38 am

yes,that should do the work. I am currently learning the condition with 2 object types. I tried more than 1 and unequal number of objects for both objects types. In this case line of sight.
But I noticed that no matter i invert the condition or not, the same objects are picked. Logically thinking, they should not pick the same object. Invert conditions should pick different objects from non-inverted condition.
Maybe i need to know more about how the second object is picked.(In the case the objects being sighted)
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 6 guests