How do I check distance() between 2 instances of object ?

Get help using Construct 2

Post » Mon Nov 03, 2014 9:31 pm

How do I check distance() between 2 instances of the same object ?

Each instance have a variable with different value (the instances are not completely identical)
B
49
S
15
G
6
Posts: 535
Reputation: 7,197

Post » Mon Nov 03, 2014 9:53 pm

Pick the first one, store it's X & Y in local variables, pick the second one, do a distance() using the variables, and the object.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 26 guests