1 | function cutscene_sfx_play_at_frame() //gml_Script_cutscene_sfx_play_at_frame |
2 | { |
3 | with (argument[0]) |
4 | { |
5 | if (argument[1] >= (image_index - image_speed) && argument[1] <= (image_index + image_speed)) |
6 | { |
7 | if (!audio_is_playing(argument[2])) |
8 | audio_play_sound(argument[2], 1, 0) |
9 | return true; |
10 | } |
11 | } |
12 | return false; |
13 | } |