How to pick the inst after create it by name?

Post » Tue May 23, 2017 5:13 am

I can't find any conditions about SOL of this...
Since "create inst by name" is available in C3, how can I pick the one I created?
Cause the name of sprites is variable, I put all the sprites I may create into a famliy. Then after create one of them. I use pick family by compression or pick all family---- It doesn't work...
B
19
S
4
G
1
Posts: 6
Reputation: 1,487

Post » Tue May 23, 2017 7:24 am

If c3 is like c2 then construct doesnt update the internal object list until the next loop. When the object is created you can store its UID in a variable then use in the family object pick by uid.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Tue May 23, 2017 8:56 pm

Same question. I'd like to create object in a function and then set some variables and spawn side objects. You can do this with the classic "Create Object" or "Spawn another Object" because Construct pick the correct last created object. But how to to the same with "Create Object by Name" and pick the last created one ?
B
14
S
4
Posts: 112
Reputation: 1,287


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest