How do I affect only the spawned object of the same type?

Get help using Construct 2

Post » Sat Jan 10, 2015 4:06 pm

If you pick by Family, and Create Sprite it can be done. Spawn isn't working for some reason, with a Family. This may be a bug. I need to experiment a bit more to see if this should be reported.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sat Jan 10, 2015 4:21 pm

@blackhornet - thanks, that sounds like a usable approach - these weird differences in, for example spawn and create can be confusing. I was going to need families anyway for some upcoming stuff so hopefully this is the ticket.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sat Jan 10, 2015 7:20 pm

Here's a function to take an object by uid and move it behind another object by uid.
It handles sprites and tiledBgs but hopefully you can see how other plugin types could be added.
You do not have the required permissions to view the files attached to this post.
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Sat Jan 10, 2015 7:42 pm

@R0J0hound - cool, I'll try to implement it once I finish the current batch of features. Suspect this will also greatly help with the "not just top or bottom" ZOrdering.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Previous

Return to How do I....?

Who is online

Users browsing this forum: beohs, boybacteria, FabianB and 24 guests