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: 534
Reputation: 7,195

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
21
G
231
Posts: 3,694
Reputation: 129,364


Return to How do I....?

Who is online

Users browsing this forum: Matei511 and 67 guests