|
1
|
if (shutta_pose)
|
|
2
|
{
|
|
3
|
shutta_pose = false;
|
|
4
|
shutta_posing = true;
|
|
5
|
with (shutta_marker)
|
|
6
|
{
|
|
7
|
sprite_index = spr_shutta_pose;
|
|
8
|
image_index = 0;
|
|
9
|
image_speed = 0;
|
|
10
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_index", 0, 15, 20);
|
|
11
|
}
|
|
12
|
}
|
|
13
|
if (shutta_pose_return)
|
|
14
|
{
|
|
15
|
shutta_pose_return = false;
|
|
16
|
with (shutta_marker)
|
|
17
|
{
|
|
18
|
sprite_index = spr_shutta_pose_return;
|
|
19
|
image_index = 0;
|
|
20
|
image_speed = 0;
|
|
21
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_index", 0, 4, 12);
|
|
22
|
scr_delay_var("sprite_index", 2569, 13);
|
|
23
|
scr_delay_var("image_speed", 0.2, 13);
|
|
24
|
}
|
|
25
|
scr_delay_var("shutta_posing", false, 13);
|
|
26
|
}
|
|
27
|
if (critter_photo)
|
|
28
|
{
|
|
29
|
critter_timer++;
|
|
30
|
if (critter_timer == 1)
|
|
31
|
{
|
|
32
|
shutta_pose = true;
|
|
33
|
critter_reset();
|
|
34
|
}
|
|
35
|
if (critter_timer == 8)
|
|
36
|
critter_pose();
|
|
37
|
if (critter_timer == 38)
|
|
38
|
{
|
|
39
|
shutta_pose_return = true;
|
|
40
|
critter_reset();
|
|
41
|
}
|
|
42
|
if (critter_timer >= 120)
|
|
43
|
{
|
|
44
|
if (con < 0)
|
|
45
|
critter_timer = 0;
|
|
46
|
}
|
|
47
|
}
|
|
48
|
if (con < 0)
|
|
49
|
exit;
|
|
50
|
if (con == 0 && !shutta_posing && !d_ex())
|
|
51
|
{
|
|
52
|
con = 1;
|
|
53
|
critter_photo = false;
|
|
54
|
critter_timer = 0;
|
|
55
|
critter_reset();
|
|
56
|
}
|
|
57
|
if (con == 10 && !d_ex() && global.interact == 0)
|
|
58
|
{
|
|
59
|
con = 11;
|
|
60
|
alarm[0] = 30; gml_Object_obj_room_castle_front_Alarm_0.gml
con++;
|
|
61
|
global.interact = 1;
|
|
62
|
cutscene_master = scr_cutscene_makescr_cutscene_make
function scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} ();
|
|
63
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} ();
|
|
64
|
global.facing = 0;
|
|
65
|
var kr_x_pos = 504;
|
|
66
|
var kr_y_pos = 400;
|
|
67
|
var kr_walktime = round(point_distance(kr_actor.x, kr_actor.y, kr_x_pos, kr_y_pos) / 6);
|
|
68
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
69
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (kr_x_pos, kr_y_pos, kr_walktime);
|
|
70
|
c_delayfacingc_delayfacing
function c_delayfacing(arg0, arg1)
{
c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0);
} (kr_walktime + 1, "d");
|
|
71
|
var su_x_pos = 450;
|
|
72
|
var su_y_pos = 367;
|
|
73
|
var su_walktime = round(point_distance(su_actor.x, su_actor.y, su_x_pos, su_y_pos) / 6);
|
|
74
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
75
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (su_x_pos, su_y_pos, su_walktime);
|
|
76
|
c_delayfacingc_delayfacing
function c_delayfacing(arg0, arg1)
{
c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0);
} (su_walktime + 1, "d");
|
|
77
|
var ra_x_pos = 547;
|
|
78
|
var ra_y_pos = 371;
|
|
79
|
var ra_walktime = round(point_distance(ra_actor.x, ra_actor.y, ra_x_pos, ra_y_pos) / 6);
|
|
80
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
81
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (ra_x_pos, ra_y_pos, ra_walktime);
|
|
82
|
c_delayfacingc_delayfacing
function c_delayfacing(arg0, arg1)
{
c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0);
} (ra_walktime + 1, "d");
|
|
83
|
c_pannablec_pannable
function c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
} (1);
|
|
84
|
c_panc_pan
function c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
} (201, 160, 30);
|
|
85
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (45);
|
|
86
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
87
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_kris_pose);
|
|
88
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
89
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_pose);
|
|
90
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
91
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_ralsei_pose);
|
|
92
|
c_waitcustomc_waitcustom
function c_waitcustom()
{
c_cmd("waitcustom", 0, 0, 0, 0);
} ();
|
|
93
|
}
|
|
94
|
if (con == 12 && customcon == 1)
|
|
95
|
{
|
|
96
|
con = 13;
|
|
97
|
alarm[0] = 15; gml_Object_obj_room_castle_front_Alarm_0.gml
con++;
|
|
98
|
shutta_pose = true;
|
|
99
|
critter_pose();
|
|
100
|
}
|
|
101
|
if (con == 14 && customcon == 1)
|
|
102
|
{
|
|
103
|
con = 15;
|
|
104
|
alarm[0] = 30; gml_Object_obj_room_castle_front_Alarm_0.gml
con++;
|
|
105
|
var flash_background = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (0, 0, spr_pixel_white);
|
|
106
|
with (flash_background)
|
|
107
|
{
|
|
108
|
image_xscale = 999;
|
|
109
|
image_yscale = 999;
|
|
110
|
image_alpha = 0;
|
|
111
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 3);
|
|
112
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_lerpvar, 6, "image_alpha", 1, 0, 6);
|
|
113
|
}
|
|
114
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (flash_background, 7);
|
|
115
|
snd_play_volume(snd_camera_flash, 0.8);
|
|
116
|
}
|
|
117
|
if (con == 16 && customcon == 1)
|
|
118
|
{
|
|
119
|
con = 17;
|
|
120
|
customcon = 0;
|
|
121
|
shutta_pose_return = true;
|
|
122
|
critter_reset();
|
|
123
|
c_waitcustom_endc_waitcustom_end
function c_waitcustom_end()
{
with (obj_cutscene_master)
{
cs_wait_custom = 0;
waiting = 0;
}
} ();
|
|
124
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
125
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
126
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
127
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
128
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
129
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
130
|
c_panobjc_panobj
function c_panobj(arg0, arg1)
{
c_cmd("panobj", arg0, arg1, 0, 0);
} (kr_actor, 15);
|
|
131
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (16);
|
|
132
|
c_pannablec_pannable
function c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
} (0);
|
|
133
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
134
|
c_actortocaterpillarc_actortocaterpillar
function c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} ();
|
|
135
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
136
|
}
|
|
137
|
if (con == 17 && !i_ex(obj_cutscene_master))
|
|
138
|
{
|
|
139
|
global.interact = 0;
|
|
140
|
global.facing = 0;
|
|
141
|
critter_timer = 38;
|
|
142
|
con = -1;
|
|
143
|
}
|