1 |
switch (ds_map_find_value(event_data, "message")) |
2 |
{ |
3 |
case "ceroba_bullet_right": |
4 |
audio_play_sound(snd_cinematiccut, 1, 0); |
5 |
instance_create_depth(520, 130, -999, obj_battle_ceroba_red_bullet); |
6 |
break; |
7 |
case "ceroba_bullet_left": |
8 |
audio_play_sound(snd_cinematiccut, 1, 0); |
9 |
instance_create_depth(128, 130, -999, obj_battle_ceroba_red_bullet); |
10 |
break; |
11 |
case "impact_sound": |
12 |
instance_create_depth(0, 0, -1, obj_ceroba_phase_2_red_shader); |
13 |
audio_play_sound(snd_undertale_impact, 1, 0); |
14 |
break; |
15 |
case "ceroba_transformation_effect": |
16 |
instance_create_depth(obj_ceroba_body_pacifist_phase_1.x, obj_ceroba_body_pacifist_phase_1.y, -1, obj_ceroba_phase_1_transformation_effect); |
17 |
break; |
18 |
} |