1 |
if (fade_out == true) |
2 |
{ |
3 |
if (image_alpha > 1) |
4 |
{ |
5 |
image_alpha -= 0.2; |
6 |
} |
7 |
else |
8 |
{ |
9 |
instance_create(0, 0, obj_game_over_choice); |
10 |
instance_destroy(); |
11 |
} |
12 |
exit; |
13 |
} |
14 |
var battle_enemy_name = global.battle_enemy_name; |
15 |
script_execute(scr_controls_text); |
16 |
if (key_revert_pressed) |
17 |
{ |
18 |
characters = message_length; |
19 |
message_draw = string_copy(message[message_current], 0, characters); |
20 |
} |
21 |
if (characters < message_length) |
22 |
{ |
23 |
if (counter == 0) |
24 |
{ |
25 |
script_execute(scr_text_increase); |
26 |
script_execute(scr_talking_game_over); |
27 |
} |
28 |
else |
29 |
{ |
30 |
can_talk = false; |
31 |
} |
32 |
} |
33 |
if (characters == message_length && no_loop == false) |
34 |
{ |
35 |
can_talk = false; |
36 |
if (key_select_pressed) |
37 |
{ |
38 |
if (message_current < message_end) |
39 |
{ |
40 |
message_current += 1; |
41 |
message_length = string_length(message[message_current]); |
42 |
characters = 0; |
43 |
message_draw = ""; |
44 |
} |
45 |
else |
46 |
{ |
47 |
fade_out = true; |
48 |
no_loop = true; |
49 |
} |
50 |
} |
51 |
} |
52 |
script_execute(scr_text_counter); |