How do I physical explosion

Get help using Construct 2

Post » Sat Mar 21, 2015 9:56 pm

Hello. I was trying to make an 'explosion' using physical (something like the explosion of aliens that video, but not the small pieces, large pieces) but did not get the result even look, someone who understands physics can help?

Alien video: https://tutsplus.github.io/bringing-you ... tion-9.mp4
capx: https://dl.dropboxusercontent.com/u/206 ... osion.capx
B
23
S
4
G
2
Posts: 96
Reputation: 2,442

Post » Sat Mar 21, 2015 10:24 pm

I don't think this expression does what you think it does:

Code: Select all
angle(monster.X, monster.Y, random(360), random(360))

This is getting the angle between your monster position and a random point with X and Y coordinates not exceeding 360. All parameters for the angle() expression represent coordinates, not angles.

Replace the previous expression with this expression and you should have pieces properly flying in random directions:

Code: Select all
random(360)
Moderator
B
107
S
41
G
20
Posts: 1,584
Reputation: 18,942

Post » Sun Mar 22, 2015 3:11 pm

You can also use the bullet-behavior for the pieces (needs less ressources then gravity and is easier to handle, i think *g*).

Edit: Hmm... Attaching a file does not work at the moment... Use THIS LINK to download the .capx
B
21
S
5
G
2
Posts: 180
Reputation: 3,497

Post » Mon Mar 23, 2015 8:38 pm

Tnks guys =)
B
23
S
4
G
2
Posts: 96
Reputation: 2,442


Return to How do I....?

Who is online

Users browsing this forum: 20170217 and 0 guests