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 | if (image_index >= (image_number - 1)) |
10 | { |
11 | var bullet = instance_create(x + lengthdir_x(128, direction), y + lengthdir_y(128, direction), obj_battle_enemy_attack_ceroba_flower_pillars_bullet_2); |
12 | bullet.direction = point_direction(bullet.x, bullet.y, x, y); |
13 | instance_destroy(); |
14 | } |