| 1 |
if (arc_enemy_death == false) |
| 2 |
{ |
| 3 |
if (step == 0) |
| 4 |
{ |
| 5 |
if (y < y_destination) |
| 6 |
y += 1.5; |
| 7 |
else |
| 8 |
step = 1; |
| 9 |
} |
| 10 |
if (step == 1) |
| 11 |
{ |
| 12 |
if (wait_timer > 0) |
| 13 |
wait_timer--; |
| 14 |
else |
| 15 |
step = 2; |
| 16 |
} |
| 17 |
if (step == 2) |
| 18 |
{ |
| 19 |
sprite_index = arc_sprite_attack; |
| 20 |
wait_timer = 30; |
| 21 |
step = 3; |
| 22 |
} |
| 23 |
if (step == 3 && !arc_enemy_hit) |
| 24 |
{ |
| 25 |
if (wait_timer > 0) |
| 26 |
wait_timer--; |
| 27 |
if (wait_timer == 25 || wait_timer == 15 || wait_timer == 5) |
| 28 |
instance_create(x, y + 16, obj_arcade_enemy_homing); |
| 29 |
if (image_index >= (image_number - image_speed)) |
| 30 |
{ |
| 31 |
wait_timer = 75; |
| 32 |
sprite_index = arc_sprite_normal; |
| 33 |
step = 1; |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
else |
| 38 |
{ |
| 39 |
if (step == 0) |
| 40 |
{ |
| 41 |
if (image_index >= (image_number - image_speed)) |
| 42 |
{ |
| 43 |
image_speed = 0; |
| 44 |
arc_enemy_hsp = 5; |
| 45 |
step++; |
| 46 |
} |
| 47 |
} |
| 48 |
if (step == 1) |
| 49 |
x += arc_enemy_hsp; |
| 50 |
} |
| 51 |
if (x != clamp(x, 0, 260)) |
| 52 |
{ |
| 53 |
instance_destroy(); |
| 54 |
obj_arcade_controller.arcade_boss = false; |
| 55 |
} |