1 | if (layer_instance_get_instance(ds_map_find_value(event_data, "element_id")) == id && ds_map_find_value(event_data, "event_type") == "sprite event") |
2 | { |
3 | switch ds_map_find_value(event_data, "message") |
4 | { |
5 | case "steam_sound": |
6 | var steam_sound = audio_play_sound(snd_pinkgoo_steam, 1, 0) |
7 | audio_sound_pitch(steam_sound, random_range(0.8, 1)) |
8 | audio_sound_gain(steam_sound, 0.5, 0) |
9 | break |
10 | } |
11 | |
12 | } |