How do I fix my balloons? Please?

Get help using Construct 2

Post » Thu Jun 19, 2014 4:04 am

Hey guys, i'm making a "balloon pop" game, but, when a balloon is under another balloon and i touch them, both got destroyed, how do i make the one on top got destroyed before the one behind it? ( sorry for my english, i'm from brazil =P ) :?:
B
4
Posts: 11
Reputation: 212

Post » Thu Jun 19, 2014 4:20 am

Add For each X order by Sprite.ZIndex descending
-> Destroy
->Stop loop
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Thu Jun 19, 2014 5:44 am

blackhornet wrote:Add For each X order by Sprite.ZIndex descending
-> Destroy
->Stop loop

blackhornet: I tried that and now my ballons don't show up, i think i got something wrong and i'm not doing it right, can you make an .capx example? please? i would be very grateful!
B
4
Posts: 11
Reputation: 212

Post » Thu Jun 19, 2014 5:49 am

.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Thu Jun 19, 2014 6:16 am

blackhornet wrote:.

THANKS! It works just fine!
B
4
Posts: 11
Reputation: 212

Post » Thu Jun 19, 2014 4:34 pm

blackhornet, it works like i wanted but, how can i do with multiple sprites? for example, when the yellow ballon is over the blue ballon, it will pop first, and then the blue ballon can be popped, when i do exactly what you do, it pops both, yellow and blue, do you know how to do that too? thanks!
B
4
Posts: 11
Reputation: 212

Post » Thu Jun 19, 2014 5:09 pm

Don't use multiple sprites. Put different colours in frames/animations and use one object. This will make your life much simpler.

(You need to add @ in front of a name to get that persons attention).
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Thu Jun 19, 2014 6:24 pm

thanks @blackhornet now it's perfect!
B
4
Posts: 11
Reputation: 212

Post » Thu Jun 19, 2014 6:52 pm

good.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577


Return to How do I....?

Who is online

Users browsing this forum: banquetburger and 13 guests