# How do I make a "pressure wave" with force?

Get help using Construct 2

### » Mon Jun 15, 2015 10:05 am

Hi,
How do i make something like a pressure wave from an explosion that goes in all directions? I have an reactor block and when it gets destroyed it should explode an push every other block away.
I tried it with force but that doesn't really work in all directions.
Thanks!
B
5
S
3
Posts: 193
Reputation: 1,063

### » Mon Jun 15, 2015 11:54 am

Force is normally used when you want it continually for a period of time.

What you are looking for is impulse, which is like a sudden jerk/impact.

And here's an easy way to do this, in your case:

[Reactor] On Destroyed, then Action:
[Blocks] Set Impulse at Angle:
Value: 5 (something from 5 to 10 would be a great impact force)
Angle: angle(reactor.X, reactor.Y, block.X, block.Y) this will make the blocks go in opposite direction from the explosion

Let me know if it worked.
Last edited by Hasan999 on Mon Jun 15, 2015 7:00 pm, edited 1 time in total.
B
10
S
2
Posts: 109
Reputation: 982

### » Mon Jun 15, 2015 4:17 pm

@Hasan999
Thanks!
It works great! Is there a way to set a radius so only blocks in that radius are pushed away?
Thanks again!
B
5
S
3
Posts: 193
Reputation: 1,063

### » Mon Jun 15, 2015 5:16 pm

To pick nearer bricks, add another condition "Pick by Comparison" found under System conditions.

Then input values as below:

Object: Brick
Expression: distance(reactor.X, reactor.Y, brick.X, brick.Y)
Radius: 200 or whichever radius (in pixels) the bricks to be affected
B
10
S
2
Posts: 109
Reputation: 982

### » Mon Jun 15, 2015 6:25 pm

@Hasan999
Thank you really much for your help!
B
5
S
3
Posts: 193
Reputation: 1,063