1 |
if (is_reading == false) |
2 |
{ |
3 |
if (pause_time > 0) |
4 |
pause_time-- |
5 |
else |
6 |
{ |
7 |
pause_time = pause_time_max |
8 |
image_speed = 1 |
9 |
is_reading = true |
10 |
} |
11 |
} |
12 |
else if (reading_time > 0) |
13 |
reading_time-- |
14 |
else |
15 |
{ |
16 |
reading_time = irandom_range(30, 120) |
17 |
is_reading = false |
18 |
image_speed = 0 |
19 |
image_index = 0 |
20 |
} |
21 |
if (floor(image_index) == 1 && talk_noloop == false && can_talk == true) |
22 |
{ |
23 |
var talk_noise = audio_play_sound(sndfnt_toriel, 1, 0) |
24 |
audio_sound_gain(talk_noise, 0.2, 0) |
25 |
talk_noloop = true |
26 |
} |
27 |
if (floor(image_index) == 0) |
28 |
talk_noloop = false |