How do I persist an "unit" to a variable?

Get help using Construct 2

Post » Thu Dec 27, 2012 7:00 pm

I want to select a "worker" and then the player select possible things to build... but how I will now witch worker the player selected? There is no "sprite" variable for me to set.

I thought to set a variable to all workers "selected", but every time I need to do something with the selected one... I need to do a foreach, this is possible not the best choice...

There other way to do this type of thing?
B
10
Posts: 19
Reputation: 1,459

Post » Thu Dec 27, 2012 8:16 pm

@wilsonglasser: Check out the manual entries on UID, which is exactly what you're looking for.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest