How do I create object with UID?

Get help using Construct 2

Post » Sat Nov 05, 2016 5:49 pm

Hi
I have and array containing 100 UIDs,
I want to create all 100 objects in one line using their UID and a for loop

I need something like "System --> Create Object" Action but by passing UID

is it possible?
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 5:59 pm

UIDs are generated by C2, you can't set the value or create it from a UID, which is just a number.
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Sat Nov 05, 2016 6:15 pm

C2 can't create objects from variables. However you can use this plugin to assign a nickname to an object and create an instance from it whenever ou want:
http://c2rexplugins.weebly.com/rex_nickname.html
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Sat Nov 05, 2016 6:52 pm

Message: pikazho can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
andreyin wrote:C2 can't create objects from variables. However you can use this plugin to assign a nickname to an object and create an instance from it whenever ou want:
http://c2rexplugins.weebly.com/rex_nickname.html


Thank you this plugin does what I want
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 6:54 pm

blackhornet wrote:UIDs are generated by C2, you can't set the value or create it from a UID, which is just a number.


yes I cant set uid but I can add sprites in a spacial sequence so c2 will assign my desired uid to it.

rex_nickname plugin helped me to solve my problem
B
8
S
2
Posts: 16
Reputation: 530


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests