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
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

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: Mirlas, Zebbi and 12 guests