1 | switch image_index |
2 | { |
3 | case 4: |
4 | case 6: |
5 | case 8: |
6 | audio_play_sound(snd_bullet_warning, 1, 0) |
7 | break |
8 | } |
9 | |
10 | if (image_index >= (image_number - 1)) |
11 | { |
12 | var bullet = instance_create((x + (lengthdir_x(128, direction))), (y + (lengthdir_y(128, direction))), obj_battle_enemy_attack_ceroba_flower_pillars_bullet_2) |
13 | bullet.direction = point_direction(bullet.x, bullet.y, x, y) |
14 | instance_destroy() |
15 | } |