Is there a way to pick an abstract object by its UID?

Get help using Construct 2

Post » Mon Sep 18, 2017 10:56 am

Is there any way to pick an instance of an 'abstract' object by its UID?
I want to be able to do something like this:
Code: Select all
  Pick Instance of <AnyObject> with UID=123
    <AnyObject> set Invisible


Object with UID=123 could be a Sprite, or a Text, or a SpriteFont etc.
Check out my awesome game Doptrix
B
17
S
9
G
50
Posts: 829
Reputation: 27,967

Post » Mon Sep 18, 2017 12:52 pm

No, because even if you could, there's no way to create an action on an "abstract" object. You have to create an action for a specific kind of object. The best you can do is add all objects to a family, and pick from that family by UID.
Scirra Founder
B
399
S
236
G
89
Posts: 24,525
Reputation: 195,382

Post » Mon Sep 18, 2017 12:56 pm

Just as I thought.. Thanks anyway, Ashley!
Check out my awesome game Doptrix
B
17
S
9
G
50
Posts: 829
Reputation: 27,967


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests