1 | function scr_text_talk |
2 | { |
3 | var message_length = string_length(message[message_current]) |
4 | if (cutoff < message_length && (cutoff % 1) == 0) |
5 | { |
6 | switch string_char_at(message[message_current], cutoff) |
7 | { |
8 | case " ": |
9 | case ".": |
10 | break |
11 | default: |
12 | audio_stop_sound(sndfnt) |
13 | audio_play_sound(sndfnt, 1, false) |
14 | break |
15 | } |
16 | |
17 | } |
18 | } |