1 |
switch scene |
2 |
{ |
3 |
case 0: |
4 |
if (obj_pl.y < 280) |
5 |
{ |
6 |
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
} () |
7 |
cutscene_advance() |
8 |
obj_pl.direction = 90 |
9 |
} |
10 |
break |
11 |
case 1: |
12 |
cutscene_camera_move(obj_pl.x, 200, 3) |
13 |
break |
14 |
case 2: |
15 |
cutscene_wait(0.5) |
16 |
break |
17 |
case 3: |
18 |
audio_play_sound(snd_encounter, 1, 0) |
19 |
instance_create(obj_axis_npc.x, (obj_axis_npc.y - 40), obj_cutscene_ex) |
20 |
cutscene_advance() |
21 |
break |
22 |
case 4: |
23 |
cutscene_wait(0.5) |
24 |
break |
25 |
case 5: |
26 |
instance_destroy(obj_cutscene_ex) |
27 |
cutscene_npc_direction(obj_axis_npc, "down") |
28 |
break |
29 |
case 6: |
30 |
cutscene_wait(0.5) |
31 |
break |
32 |
case 7: |
33 |
cutscene_npc_walk(1166, 148, 120, 4, "x", "up") |
34 |
break |
35 |
case 8: |
36 |
cutscene_wait(0.5) |
37 |
break |
38 |
case 9: |
39 |
audio_play_sound(snd_sliding_door_open, 1, 0) |
40 |
layer_set_visible("door_visible", false) |
41 |
cutscene_advance() |
42 |
break |
43 |
case 10: |
44 |
cutscene_npc_walk(1166, 120, 100, 4, "x", "up") |
45 |
break |
46 |
case 11: |
47 |
obj_axis_npc.image_alpha -= 0.15 |
48 |
if (obj_axis_npc.image_alpha <= 0) |
49 |
{ |
50 |
instance_destroy(obj_axis_npc) |
51 |
cutscene_advance() |
52 |
} |
53 |
break |
54 |
case 12: |
55 |
cutscene_wait(0.5) |
56 |
break |
57 |
case 13: |
58 |
cutscene_camera_move(obj_pl.x, obj_pl.y, 2) |
59 |
break |
60 |
case 14: |
61 |
global.sworks_flag[26] = 2 |
62 |
cutscene_camera_reset() |
63 |
instance_destroy(105301) |
64 |
instance_destroy(105300) |
65 |
cutscene_end() |
66 |
break |
67 |
} |