1 |
event_inherited(); |
2 |
if (interact == 1 && scene == 0) |
3 |
{ |
4 |
scr_cutscene_start(); |
5 |
scene = 1; |
6 |
} |
7 |
if (!instance_exists(obj_dialogue)) |
8 |
{ |
9 |
switch (scene) |
10 |
{ |
11 |
case 1: |
12 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
13 |
is_talking = true; |
14 |
with (msg) |
15 |
{ |
16 |
portrait = false; |
17 |
message[0] = "* Hello. This is MARTLET."; |
18 |
message[1] = "* Just kidding, I'm TESTLET.#* I'm here to show you# how I can walk around."; |
19 |
message[2] = "* Watch and learn, kiddo!"; |
20 |
} |
21 |
scene++; |
22 |
break; |
23 |
case 2: |
24 |
if (arrived == 1) |
25 |
scene++; |
26 |
break; |
27 |
case 3: |
28 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
29 |
is_talking = true; |
30 |
with (msg) |
31 |
{ |
32 |
portrait = false; |
33 |
message[0] = "* I bet you can't walk# like that, scrub."; |
34 |
message[1] = "* Testlet, out!"; |
35 |
} |
36 |
scene++; |
37 |
break; |
38 |
case 4: |
39 |
action_sprite = true; |
40 |
sprite_index = martlet_fly_away; |
41 |
image_speed = 0.5; |
42 |
scene++; |
43 |
break; |
44 |
case 5: |
45 |
if (action_sprite == false) |
46 |
{ |
47 |
scr_cutscene_end(); |
48 |
instance_destroy(); |
49 |
} |
50 |
break; |
51 |
} |
52 |
} |