How do I make a things follow another thing with same value?

Get help using Construct 2

Post » Tue May 19, 2015 12:28 pm

I have 4 of the same object, and each of them have "a follow dot"

But when I make them follow their dots, they follow a dot that belongs to one of the other objects. The dots and the objects got a variable with same value each. So one of the objects has 1 in value same as the dot, and another got value 2 same as its dot.

So how do I get the object to only follow it`s own follow dot?
B
8
S
1
Posts: 4
Reputation: 553

Post » Tue May 19, 2015 12:35 pm

Either put the dots in a container with the object,
or give the dots an instance variable and compare..

on start of layout
-- for each dot
-- object pick nearest to dot.x,dot.y
> object set variable to dot.uid

object.variable = dot.uid
> object follow dot
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 42 guests