1 |
script_execute(gml_Script_scr_controls_text) |
2 |
if key_revert_pressed |
3 |
{ |
4 |
characters = message_length |
5 |
message_draw = string_copy(message[message_current], 0, characters) |
6 |
} |
7 |
if (characters < message_length) |
8 |
{ |
9 |
if (counter == 0) |
10 |
{ |
11 |
script_execute(gml_Script_scr_text_increase) |
12 |
script_execute(gml_Script_scr_talking_flowey_1) |
13 |
} |
14 |
else |
15 |
can_talk = false |
16 |
} |
17 |
else |
18 |
{ |
19 |
can_talk = false |
20 |
if key_select_pressed |
21 |
{ |
22 |
if (message_current < message_end) |
23 |
{ |
24 |
if (message_current == 3) |
25 |
{ |
26 |
while (instance_number(obj_battle_enemy_attack_friendliness_pellets_yellow) < 5) |
27 |
instance_create(obj_flowey_intro_yellow.x, obj_flowey_intro_yellow.y, obj_battle_enemy_attack_friendliness_pellets_yellow) |
28 |
} |
29 |
message_current += 1 |
30 |
message_length = string_length(message[message_current]) |
31 |
characters = 0 |
32 |
message_draw = "" |
33 |
} |
34 |
else |
35 |
{ |
36 |
with (obj_battle_enemy_attack_friendliness_pellets_yellow) |
37 |
{ |
38 |
while (distance_counter < distance_counter_max) |
39 |
{ |
40 |
x += lengthdir_x(move_speed_create, angle) |
41 |
y += lengthdir_y(move_speed_create, angle) |
42 |
distance_counter += 1 |
43 |
} |
44 |
move = true |
45 |
} |
46 |
with (obj_quote_bubble_battle) |
47 |
instance_destroy() |
48 |
instance_destroy() |
49 |
} |
50 |
} |
51 |
} |
52 |
script_execute(gml_Script_scr_text_counter) |