Instance number

Get help using Construct 2

Post » Thu Sep 26, 2013 10:24 pm

How do I find out the instance numer of an instance? Is this possible?
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Thu Sep 26, 2013 11:17 pm

IID gives you the index of the instance, UID gives you the index of the object.
Both are based on the order in which they are created, however you can have multiples of IID, and only one of the UID, but it can be recycled as you destroy objects.
Image ImageImage
B
168
S
50
G
164
Posts: 8,238
Reputation: 105,595

Post » Fri Sep 27, 2013 12:08 pm

Thanks again, newt.

I'll create a variable to find out the values in debugging. I presume this is a fast way to obtain that number.
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Fri Sep 27, 2013 3:19 pm

Using the debugger is even easier ;)
B
46
S
14
G
7
Posts: 603
Reputation: 8,096


Return to How do I....?

Who is online

Users browsing this forum: digitalsoapbox, RetrocadeMedia and 1 guest