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.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
125
Posts: 1,734
Reputation: 66,789

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
408
S
242
G
92
Posts: 24,888
Reputation: 198,582

Post » Mon Sep 18, 2017 12:56 pm

Just as I thought.. Thanks anyway, Ashley!
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
125
Posts: 1,734
Reputation: 66,789


Return to How do I....?

Who is online

Users browsing this forum: TheSynan and 11 guests