Exploding Physics Object

Get help using Construct 2

Post » Fri Nov 04, 2011 10:46 pm

Ive been trying all day but i cant seem to figure out how to make an object explode with force or impulse effecting the physics objects around the object exploding. I have multiple different objects i want effected if the cannonball is close enough to effect it. But i cant figure out how or where to direct the blast around the cannonball to a limited "Blast zone" so only the objects within ranged are effected.

here is the capx of what i have so far, its not much.

http://dl.dropbox.com/u/47975195/Exploading%20Ball.capx3DGS2011-11-04 22:48:00
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

Post » Sat Nov 05, 2011 7:44 am

hop! That's for you
canonBall.capx
Last edited by Yann on Sun Sep 14, 2014 11:01 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Nov 05, 2011 10:34 am

Edit : wrong post...Pode2011-11-05 15:48:48
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sat Nov 05, 2011 11:14 am

Wow that is perfect but i don't quite understand how you were able to apply it to all 3 types of blocks, I'm assuming it was using the loop command but would u mind explaining a little more please? that is great work!
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

Post » Sat Nov 05, 2011 11:19 am

Ahhh i see, you combined them all to one sprite and just changed the animation frame for each color, very clever, considering they have the same properties. But if i were using, lets say 6 completely different shapes and sizes with different behaviors/variables on them, would i have to make a true event for the collision on each of the items, or is there a way to make a collide with a,b,c,d,e, or f then Set explode to true?3DGS2011-11-05 12:01:12
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

Post » Sat Nov 05, 2011 12:25 pm

Well, every body's waiting for the "family" feature to come (:

Families will allow you to "group" same kind of elements (sprite or tiled background, or text) under the same name and manipulate shared properties (similar instance variable and behavior) as I did here. Just, as ou said, these element will be able to have different behaviors/variables.

@ Pode: you mean... the car in the other thread about car AI ?
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Nov 05, 2011 1:19 pm

ahhh ok, im looking forward to that, thank you for all your help!
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

Post » Wed Nov 09, 2011 11:28 am

Im looking forward too. Families would be nice!
B
14
S
2
G
6
Posts: 110
Reputation: 3,849


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests