1 |
if live_call() |
2 |
return global.live_result; |
3 |
var door = instance_place(x, y, obj_doorway) |
4 |
if (door != noone) |
5 |
instance_destroy(door) |
6 |
switch scene |
7 |
{ |
8 |
case 0: |
9 |
if ((!global.cutscene) && place_meeting(x, y, obj_pl)) |
10 |
{ |
11 |
scr_cutscene_startscr_cutscene_startfunction scr_cutscene_start() //gml_Script_scr_cutscene_start
{
global.cutscene = true
obj_pl.state = gml_Script_scr_frozen_state
obj_pl.image_index = 0
obj_pl.image_speed = 0
} () |
12 |
cutscene_advance() |
13 |
} |
14 |
break |
15 |
case 1: |
16 |
cutscene_dialogue() |
17 |
with (msg) |
18 |
{ |
19 |
sndfnt = 102 |
20 |
for (var i = 0; i < array_length(other.message); i++) |
21 |
{ |
22 |
message[i] = other.message[i] |
23 |
prt[i] = other.prt[i] |
24 |
} |
25 |
} |
26 |
break |
27 |
case 2: |
28 |
with (obj_pl) |
29 |
{ |
30 |
clover_walk_backwards = false |
31 |
autowalk_direction = other.walk_dir |
32 |
switch other.walk_dir |
33 |
{ |
34 |
case "down": |
35 |
direction = 270 |
36 |
break |
37 |
case "right": |
38 |
direction = 0 |
39 |
break |
40 |
case "left": |
41 |
direction = 180 |
42 |
break |
43 |
case "up": |
44 |
direction = 90 |
45 |
break |
46 |
} |
47 |
|
48 |
state = gml_Script_scr_autowalk_state |
49 |
alarm[1] |
50 |
} |
51 |
cutscene_advance() |
52 |
break |
53 |
case 3: |
54 |
if (!obj_pl.alarm[1]) |
55 |
{ |
56 |
scr_cutscene_end() |
57 |
scene = 0 |
58 |
} |
59 |
break |
60 |
} |