1 | draw_set_color(c_red); |
2 | draw_rectangle(a_x, a_y, a_x2, a_y2, true); |
3 | gh = collision_rectangle(a_x, a_y, a_x2, a_y2, obj_stormstar, 0, 1); |
4 | if (gh != -4) |
5 | { |
6 | if (gh.con == 1) |
7 | draw_circle(10, 10, 4, 0); |
8 | if (gh.con == 2) |
9 | draw_circle(30, 10, 4, 0); |
10 | } |
11 | with (gh) |
12 | { |
13 | if (con != 3 && con != 4 && big == 0) |
14 | { |
15 | event_user(3); |
16 | speed = 0; |
17 | } |
18 | } |
19 | if (off == 1) |
20 | { |
21 | vol -= 0.0125; |
22 | caster_set_volume(expl, vol); |
23 | } |