1 | function scr_cutscene_loadstate |
2 | { |
3 | scr_debug_print |
4 | for (var i = 0; i < 20; i++) |
5 | { |
6 | if (i_ex(actor_id[i])) |
7 | { |
8 | if (actorSaved[i] == 1) |
9 | { |
10 | with (actor_id[i]) |
11 | scr_instance_load_local_vars |
12 | } |
13 | } |
14 | } |
15 | for (var i = 0; i < 10; i++) |
16 | { |
17 | if (i_ex(save_object[i])) |
18 | { |
19 | if (objectSaved[i] == 1) |
20 | { |
21 | with (save_object[i]) |
22 | scr_instance_load_local_vars |
23 | } |
24 | } |
25 | } |
26 | for (var i = 0; i < array_length_1d(masterArray); i++) |
27 | variable_instance_set(id, masterArray[i], myVar[i]); |
28 | camerax_set(remCameraX); |
29 | cameray_set(remCameraY); |
30 | with (obj_panner) |
31 | instance_destroy(); |
32 | with (obj_move_actor) |
33 | instance_destroy(); |
34 | with (obj_move_to_point) |
35 | instance_destroy(); |
36 | with (obj_shakeobj) |
37 | instance_destroy(); |
38 | with (obj_shake) |
39 | instance_destroy(); |
40 | with (obj_dialoguer) |
41 | instance_destroy(); |
42 | with (obj_writer) |
43 | instance_destroy(); |
44 | with (obj_face) |
45 | instance_destroy(); |
46 | with (obj_cutscene_delaycmd) |
47 | instance_destroy(); |
48 | with (obj_jump_to_point) |
49 | instance_destroy(); |
50 | with (obj_stickto) |
51 | instance_destroy(); |
52 | with (obj_lerpvar) |
53 | instance_destroy(); |
54 | loadedState = 1; |
55 | waiting = 0; |
56 | scr_cutscene_master_commands_initialize |
57 | } |