Exploding Coin Chest

Get help using Construct 2

Post » Sat Jul 25, 2015 9:12 am

Hello! I'm just wondering how to make a chest that explodes and then coins fly all over the map!

I already have the whole thing set up. Stand on one of those TNT ignite things, one second later.. BOOM! The chest explodes. I have all of that, so don't worry.

What I'm wondering is, how do I make the coins go everywhere?

I had all the coins on another layer on top of the chest with four boxes around the coins to prevent them from falling all over the place due to the physics behavior.
Then I made the boxes invisible and the coins invisible also.
Then I created an event that says, once you step on the TNT Button, an explosion animation plays on the chest, the four invisible boxes are destroyed, and the coins are turned visible.

Sounds good in theory, but it doesn't work as intended.

It's all well and fine until the boxes disappear.

After the boxes disappear, the coins are like "We're free!!!" and they start going above one another until they form a giant coin skyscraper, eventually falling like the leaning tower of pizza until it actually hits the ground. It's because they're all Physics Behavior, so they can't overlap one another.

Works I suppose... But I don't want them to stack up like that. I want them all to just explode out of the chest, going everywhere!!

I suppose I could put each individual coin on a layer on its own, but that's a pain in the butt to do...

Any theories on how to fix this?
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Sat Jul 25, 2015 2:06 pm

I would suggest using Bullet behavior, it also has gravity settings and consumes less cpu. I´ll make a .capx in a blink!
B
9
S
3
Posts: 150
Reputation: 1,264

Post » Sat Jul 25, 2015 2:32 pm

Actually, bullet behavior stops bullets when their speed is 0, so here it is with physics, hope it is close to what you want:
https://www.dropbox.com/s/g755hzghpec8x ... .capx?dl=0
B
9
S
3
Posts: 150
Reputation: 1,264

Post » Thu Jul 30, 2015 11:21 am

Damn, this is perfect! Just while we're dealing with this function, is there a way to say "Spawn object every ___ seconds"?
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Fri Jul 31, 2015 5:51 am

Bump!
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Fri Jul 31, 2015 7:40 am

just playing around with @CloveItOc example I get...

https://db.tt/ZdZGrlij
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], iceangel, jcstranger, SERG 04 and 1 guest