1 | alarm[0] = rate; |
2 | m = instance_create(x, y, blt_growbullet); |
3 | if (instance_exists(m)) |
4 | { |
5 | m.dmg = dmg; |
6 | if (sum == 1) |
7 | { |
8 | m.speed /= 1.1; |
9 | m.friction /= 1.25; |
10 | } |
11 | if (blue == 1) |
12 | { |
13 | m.image_index = 1; |
14 | m.blue = 1; |
15 | } |
16 | m.direction = direction; |
17 | if (green == 0 && cleaner == 1) |
18 | { |
19 | m.image_index = 2; |
20 | m.blue = 3; |
21 | m.friction /= 3; |
22 | m.sprite_index = spr_waterbul_mask; |
23 | } |
24 | } |
25 | green -= 1; |
26 | if (green < 0) |
27 | { |
28 | if (sum > 1) |
29 | green = 4; |
30 | if (sum == 1) |
31 | green = 9; |
32 | } |