1 | if live_call() |
2 | return global.live_result; |
3 | if (layer_instance_get_instance(ds_map_find_value(event_data, "element_id")) == id) |
4 | { |
5 | switch ds_map_find_value(event_data, "message") |
6 | { |
7 | case "bullet_drop": |
8 | audio_play_sound(snd_ceroba_bullet_drop, 1, 0) |
9 | instance_destroy() |
10 | var bullet = instance_create_depth(x, (y - 92), -110, obj_battle_enemy_attack_bullet_2) |
11 | bullet.target_x = target_x |
12 | bullet.target_y = target_y |
13 | bullet.turn_rate = turn_rate |
14 | break |
15 | } |
16 | |
17 | } |