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.6, 0.8)) |
8 | break |
9 | } |
10 | |
11 | } |