1 | if (timer == 0) |
2 | { |
3 | snd_play(snd_damage); |
4 | if (other.big == 0) |
5 | { |
6 | with (other) |
7 | event_user(0); |
8 | } |
9 | timer = 1; |
10 | x += (3 - random(6)); |
11 | y += (3 - random(6)); |
12 | image_angle = choose(-30, 30, -40, 40); |
13 | image_index = 3; |
14 | fx = instance_create(x, y, obj_pipis_egg_bullet_piece); |
15 | fx.image_index = random(3); |
16 | fx.image_xscale = 2; |
17 | fx.image_yscale = 2; |
18 | fx.direction = 45 + random(90); |
19 | } |