|
1
|
if (con < 0)
|
|
2
|
exit;
|
|
3
|
if (con == 0)
|
|
4
|
{
|
|
5
|
con = 1;
|
|
6
|
alarm[0] = 30; gml_Object_obj_credits_ch5_schooldoor_Alarm_0.gml
con++;
|
|
7
|
global.interact = 1;
|
|
8
|
global.facing = 0;
|
|
9
|
}
|
|
10
|
if (con == 2)
|
|
11
|
{
|
|
12
|
con = 10;
|
|
13
|
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;
} ();
|
|
14
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
if (i_ex(obj_plat_player))
{
scr_maincharacters_actors_plat();
exit;
}
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;
}
}
}
} ();
|
|
15
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
16
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
17
|
if (auto_mode)
|
|
18
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_krisu_walk_balloon_head_down);
|
|
19
|
else
|
|
20
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_krisu_head_down);
|
|
21
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (60);
|
|
22
|
if (auto_mode)
|
|
23
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_kris_look_down_left_balloon);
|
|
24
|
else
|
|
25
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_kris_look_down_left);
|
|
26
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
27
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (30);
|
|
28
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
29
|
if (auto_mode)
|
|
30
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_krisd_walk_balloon_head_down);
|
|
31
|
else
|
|
32
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_krisd_walk_head_down);
|
|
33
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
function c_image_speed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.1);
|
|
34
|
c_walkdirectc_walkdirect
function c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
} (kr_actor.x, 240, 140);
|
|
35
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (60);
|
|
36
|
c_customfuncc_customfunc
function c_customfunc(arg0, arg1 = -1)
{
if (instance_exists(obj_cutscene_master))
{
with (obj_cutscene_master)
array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
}
} (function()
|
|
37
|
{
|
|
38
|
blackall = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (-10, -10, spr_pixel_white);
|
|
39
|
blackall.image_xscale = 999;
|
|
40
|
blackall.image_yscale = 999;
|
|
41
|
blackall.depth = 100;
|
|
42
|
blackall.image_blend = c_black;
|
|
43
|
blackall.image_alpha = 0;
|
|
44
|
with (blackall)
|
|
45
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 0, 1, 80);
|
|
46
|
});
|
|
47
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (140);
|
|
48
|
c_customfuncc_customfunc
function c_customfunc(arg0, arg1 = -1)
{
if (instance_exists(obj_cutscene_master))
{
with (obj_cutscene_master)
array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
}
} (function()
|
|
49
|
{
|
|
50
|
var tbc_event = instance_create(0, 0, obj_credits_ch5_tbc);
|
|
51
|
tbc_event.depth = 50;
|
|
52
|
});
|
|
53
|
c_waitcustomc_waitcustom
function c_waitcustom()
{
c_cmd("waitcustom", 0, 0, 0, 0);
} ();
|
|
54
|
}
|