1 |
function scr_text_increasescr_text_increasefunction scr_text_increase() //gml_Script_scr_text_increase
{
hold = key_select * global.hold_speed
if (hold > global.hold_speed)
hold = global.hold_speed
else if (hold <= 0)
hold = 1
characters += (increase * hold)
if (characters > message_length)
characters = message_length
message_draw = string_copy(message[message_current], 0, characters)
current_char = string_char_at(message_draw, characters)
} () //gml_Script_scr_text_increase |
2 |
{ |
3 |
hold = key_select * global.hold_speed |
4 |
if (hold > global.hold_speed) |
5 |
hold = global.hold_speed |
6 |
else if (hold <= 0) |
7 |
hold = 1 |
8 |
characters += (increase * hold) |
9 |
if (characters > message_length) |
10 |
characters = message_length |
11 |
message_draw = string_copy(message[message_current], 0, characters) |
12 |
current_char = string_char_at(message_draw, characters) |
13 |
} |