1 |
if (ds_map_find_value(event_data, "event_type") == "sprite event") |
2 |
{ |
3 |
switch ds_map_find_value(event_data, "message") |
4 |
{ |
5 |
case "factory02_axis_falls": |
6 |
audio_play_sound(snd_axis_trash_can_hit, 1, 0) |
7 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (8, 1) |
8 |
break |
9 |
case "factory02_power_disconnect": |
10 |
instance_create_depth(obj_axis_npc.x, obj_axis_npc.y, ((-room_height) - 100), obj_factory_03_axis_flashlight) |
11 |
break |
12 |
case "ceroba_punch": |
13 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (3, 1) |
14 |
audio_play_sound(snd_undertale_explosion, 1, 0) |
15 |
audio_stop_sound(cutscene_music) |
16 |
with (obj_steamworks_factory_02_face) |
17 |
{ |
18 |
sprite_index = spr_factory_03_face_shatter |
19 |
image_speed = 1 |
20 |
image_index = 0 |
21 |
} |
22 |
break |
23 |
} |
24 |
|
25 |
} |