1 |
function scr_portrait_counter_idlescr_portrait_counter_idlefunction scr_portrait_counter_idle() //gml_Script_scr_portrait_counter_idle
{
if (characters == message_length && portrait[message_current] != -4)
{
if (portrait_counter_idle >= 1)
{
portrait_counter_idle -= 1
portrait_image_index_idle += 1
if (portrait_image_index_idle > portrait_image_index_max_idle)
portrait_image_index_idle = 0
}
portrait_counter_idle += (portrait_image_speed_idle * hold)
}
else
{
portrait_counter_idle = 0
portrait_image_index_idle = 0
}
} () //gml_Script_scr_portrait_counter_idle |
2 |
{ |
3 |
if (characters == message_length && portrait[message_current] != -4) |
4 |
{ |
5 |
if (portrait_counter_idle >= 1) |
6 |
{ |
7 |
portrait_counter_idle -= 1 |
8 |
portrait_image_index_idle += 1 |
9 |
if (portrait_image_index_idle > portrait_image_index_max_idle) |
10 |
portrait_image_index_idle = 0 |
11 |
} |
12 |
portrait_counter_idle += (portrait_image_speed_idle * hold) |
13 |
} |
14 |
else |
15 |
{ |
16 |
portrait_counter_idle = 0 |
17 |
portrait_image_index_idle = 0 |
18 |
} |
19 |
} |