1 |
function scr_cutscene_loadstatescr_cutscene_loadstatefunction scr_cutscene_loadstate()
{
scr_debug_print("Cutscene Loaded");
for (var i = 0; i < 20; i++)
{
if (i_ex(actor_id[i]))
{
if (actorSaved[i] == 1)
{
with (actor_id[i])
scr_instance_load_local_vars();
}
}
}
for (var i = 0; i < 10; i++)
{
if (i_ex(save_object[i]))
{
if (objectSaved[i] == 1)
{
with (save_object[i])
scr_instance_load_local_vars();
}
}
}
for (var i = 0; i < array_length_1d(masterArray); i++)
variable_instance_set(id, masterArray[i], myVar[i]);
camerax_set(remCameraX);
cameray_set(remCameraY);
with (obj_panner)
instance_destroy();
with (obj_move_actor)
instance_destroy();
with (obj_move_to_point)
instance_destroy();
with (obj_shakeobj)
instance_destroy();
with (obj_shake)
instance_destroy();
with (obj_dialoguer)
instance_destroy();
with (obj_writer)
instance_destroy();
with (obj_face)
instance_destroy();
with (obj_cutscene_delaycmd)
instance_destroy();
with (obj_jump_to_point)
instance_destroy();
with (obj_stickto)
instance_destroy();
with (obj_lerpvar)
instance_destroy();
loadedState = 1;
waiting = 0;
scr_cutscene_master_commands_initialize();
} () |
2 |
{ |
3 |
scr_debug_print("Cutscene Loaded"); |
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_varsscr_instance_load_local_varsfunction scr_instance_load_local_vars()
{
for (var __n = 0; __n < array_length_1d(__masterArray); __n++)
{
sprite_index = ___saveSpriteIndex;
image_index = ___saveImageIndex;
image_speed = ___saveImageSpeed;
image_xscale = ___saveXscale;
image_yscale = ___saveYscale;
image_alpha = ___saveAlpha;
image_blend = ___saveBlend;
image_angle = ___saveAngle;
x = ___saveX;
y = ___saveY;
speed = ___saveSpeed;
direction = ___saveDirection;
depth = ___saveDepth;
visible = ___saveVisible;
gravity = ___saveGravity;
gravity_direction = ___saveGravityDirection;
friction = ___saveFriction;
if (__masterArray[__n] != "__myVar" && __masterArray[__n] != "__masterArray")
variable_instance_set(id, __masterArray[__n], __myVar[__n]);
}
} (); |
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_varsscr_instance_load_local_varsfunction scr_instance_load_local_vars()
{
for (var __n = 0; __n < array_length_1d(__masterArray); __n++)
{
sprite_index = ___saveSpriteIndex;
image_index = ___saveImageIndex;
image_speed = ___saveImageSpeed;
image_xscale = ___saveXscale;
image_yscale = ___saveYscale;
image_alpha = ___saveAlpha;
image_blend = ___saveBlend;
image_angle = ___saveAngle;
x = ___saveX;
y = ___saveY;
speed = ___saveSpeed;
direction = ___saveDirection;
depth = ___saveDepth;
visible = ___saveVisible;
gravity = ___saveGravity;
gravity_direction = ___saveGravityDirection;
friction = ___saveFriction;
if (__masterArray[__n] != "__myVar" && __masterArray[__n] != "__masterArray")
variable_instance_set(id, __masterArray[__n], __myVar[__n]);
}
} (); |
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 |
} |