About family.pick instance with UID

Discussion and feedback on Construct 2

Post » Wed Jun 27, 2012 4:07 pm

I have a family and some sprites belong to it. I have create one instance of a sprite and save its uid to a variable. Does the "family.pick instance with UID" pick this instance? I use this event, but it seems that I get nothing. But when I use "sprite.pick instance with UID", it works correctly.
B
7
S
2
G
3
Posts: 2
Reputation: 2,406

Post » Mon Jul 02, 2012 11:31 pm

It should work. How are your events set up? If you are using "family.pick instance with UID" as a sub event of the event which creates the sprite, then the new sprite isn't included with the picked family yet at that point.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Sat Jul 07, 2012 7:03 pm

First, I have an event : family.on dragdrop drop. Then I want to pick another instance of this family in its sub event. I try to use family.pick instance with UID, it doesn't work. But sprite.pick instance with UID works.
B
7
S
2
G
3
Posts: 2
Reputation: 2,406


Return to Construct 2 General

Who is online

Users browsing this forum: The Mnk and 9 guests