Explosion Behavior

New releases and general discussions.

Post » Sat Sep 11, 2010 10:15 pm

I was wondering if someone could make an "Explosion" behavior with variables such as distance in pixels, explosion power, etc. It would be much easier than using vectors and stuff.
B
2
G
2
Posts: 19
Reputation: 688

Post » Sat Sep 11, 2010 10:37 pm

Try using the particles object with the One-shot option checked
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon Sep 13, 2010 4:18 am

That's not what I meant. I'm talking about explosion physics effecting the objects around it. Not particles.
B
2
G
2
Posts: 19
Reputation: 688

Post » Tue Sep 14, 2010 1:57 am

Do you mean something like this?
http://dl.dropbox.com/u/10316081/explode.cap
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Thu Sep 16, 2010 11:48 pm

An "explosion behavior" is too vague a concept, and quite useless when there's a plugin like custom movement. Would the behavior be applied to the explosion object, or the sprites that are affected by the blast? This kind of thing is best implemented by hand. Objects that move with any kind of "physics" usually do so with custom movement or platform or physics some other behavior. It's best to come up with a simple formula to calculate the blast proximity and the effect it has on the x and y speed of objects. Custom movement makes this very easy to do so.

For physics, get the angle between the two objects for the movement vector, and use a formula which involves the distance between them to account for the closeness of the blast.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests