How do I set diferent positions for intances of one obj

Get help using Construct 2

Post » Fri Mar 28, 2014 9:42 pm

I need to set diferent positions for several instances of the same object in a every thick condition.

The thing is that I don't know how to identify each instance to set the position of each one correctly. Is there a way to do that?

Thanks in advance!
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Fri Mar 28, 2014 10:14 pm

you can either use "pick UID" or you could every instance a variable - e.g., INDEX or TAG and set each instance to a unique value

There are probably other ways like picking nearest etc but it depends on what you are doing
B
37
S
9
G
5
Posts: 437
Reputation: 6,094

Post » Sat Mar 29, 2014 12:05 am

@czar
Since the object won't ever be destroyed, I think picking UID isn't a problem. Isn't it?
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sun Mar 30, 2014 6:26 pm

@kossglobal Only thing I don't like about picking using UID is when you have a number of instance then it becomes a pain to remember the UIDs. The nice thing about the variable system is that you can access the instances using a FOR loop.
B
37
S
9
G
5
Posts: 437
Reputation: 6,094


Return to How do I....?

Who is online

Users browsing this forum: michaelverdi and 26 guests