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 "martlet_takeoff_sound": |
6 | audio_play_sound(snd_martlet_takeoff, 1, 0) |
7 | break |
8 | } |
9 | |
10 | } |