1 | x += grav; |
2 | grav += 0.6; |
3 | if (x >= 320) |
4 | { |
5 | speed = 0; |
6 | gravity = 0; |
7 | x = 320; |
8 | grav = 0; |
9 | if (state == 0) |
10 | { |
11 | snd_play(snd_closet_impact); |
12 | state = 1; |
13 | repeat (24) |
14 | { |
15 | instance_create(320 + random_range(-4, 14), 0 + irandom(240), obj_boxing_closing_block_dust); |
16 | instance_create(320 + random_range(-4, 14), 240 + irandom(240), obj_boxing_closing_block_dust); |
17 | } |
18 | } |
19 | } |