1 | if (other.collided == 0) |
2 | { |
3 | slash = instance_create(other.x, other.y, obj_slashEffect); |
4 | slash.image_angle = image_angle + 45; |
5 | slash.depth = other.depth - 1; |
6 | slash.image_xscale = 1; |
7 | slash.image_yscale = 1; |
8 | obj_queen_enemy.wirescut++; |
9 | other.stopmoving = 1; |
10 | other.sprite_index = spr_berdly_plug_target_burst; |
11 | other.image_index = 0; |
12 | other.image_speed = 0.5; |
13 | if (obj_queen_enemy.phase == 1) |
14 | obj_queen_throw_controller.bardlymercy += 12.5; |
15 | if (obj_queen_enemy.phase == 2) |
16 | obj_queen_throw_controller.bardlymercy += 8.333333333333334; |
17 | if (obj_queen_enemy.phase == 3) |
18 | obj_queen_throw_controller.bardlymercy += 6.25; |
19 | if (obj_queen_enemy.phase == 4) |
20 | obj_queen_throw_controller.bardlymercy += 5; |
21 | if (other.good == 1) |
22 | { |
23 | global.msg[0] = stringsetloc( |
24 | snd_play(snd_coin); |
25 | with (other) |
26 | { |
27 | if (offing == 1) |
28 | con = 1; |
29 | else |
30 | con = 5; |
31 | } |
32 | } |
33 | else |
34 | { |
35 | snd_play(snd_noise); |
36 | with (other) |
37 | con = 7; |
38 | global.msg[0] = stringsetloc( |
39 | hspeed = -12; |
40 | vspeed = -4; |
41 | gravity = 0.5; |
42 | con = 2; |
43 | } |
44 | scr_battletext_default |
45 | other.collided = 1; |
46 | collided = 1; |
47 | } |