|
1
|
if (con == 10)
|
|
2
|
{
|
|
3
|
mus_volume(global.currentsong[1], 0, 30);
|
|
4
|
if (instance_exists(obj_mainchara))
|
|
5
|
{
|
|
6
|
obj_mainchara.visible = 0;
|
|
7
|
kr_actor = instance_create_depth(obj_mainchara.x, obj_mainchara.y, obj_mainchara.depth, obj_actor);
|
|
8
|
kr_actor.sprite_index = obj_mainchara.sprite_index;
|
|
9
|
kr_actor.__x = kris_x + 6;
|
|
10
|
kr_actor.__y = kris_y + 20;
|
|
11
|
with (kr_actor)
|
|
12
|
{
|
|
13
|
scr_set_facing_spritesscr_set_facing_sprites
function scr_set_facing_sprites(arg0)
{
_actorname = arg0;
name = arg0;
if (is_string(_actorname))
{
if (_actorname == "kris")
{
name = "kris";
if (global.darkzone == 0)
_actorname = "krislight";
if (global.darkzone == 1)
_actorname = "krisdark";
}
if (_actorname == "susie")
{
name = "susie";
if (global.darkzone == 0)
{
_actorname = "susielight";
if (global.chapter >= 2)
_actorname = "susielighteyes";
}
if (global.darkzone == 1)
{
if (global.chapter == 1)
_actorname = "susiedark";
if (global.chapter >= 2)
_actorname = "susiedarkeyes";
}
}
if (_actorname == "ralsei")
{
name = "ralsei";
if (global.chapter <= 1)
_actorname = "ralseihat";
if (global.chapter > 1)
_actorname = "ralseinohat";
}
if (_actorname == "noelle")
{
name = "noelle";
if (global.darkzone == 0)
_actorname = "noellelight";
if (global.darkzone == 1)
_actorname = "noelledark";
}
if (_actorname == "berdly")
{
name = "berdly";
if (global.darkzone == 0)
_actorname = "berdlylight";
if (global.darkzone == 1)
_actorname = "berdlydark";
}
if (_actorname == "krislight")
{
usprite = spr_krisu;
rsprite = spr_krisr;
dsprite = spr_krisd;
lsprite = spr_krisl;
}
if (_actorname == "krisdark")
{
usprite = spr_krisu_dark;
rsprite = spr_krisr_dark;
dsprite = spr_krisd_dark;
lsprite = spr_krisl_dark;
}
if (_actorname == "susielight")
{
usprite = spr_susieu;
rsprite = spr_susier;
dsprite = spr_susied;
lsprite = spr_susiel;
}
if (_actorname == "susielighteyes")
{
usprite = spr_susie_walk_up_lw;
rsprite = spr_susie_walk_right_lw;
dsprite = spr_susie_walk_down_lw;
lsprite = spr_susie_walk_left_lw;
}
if (_actorname == "susiedark")
{
usprite = spr_susieu_dark;
rsprite = spr_susier_dark;
dsprite = spr_susied_dark;
lsprite = spr_susiel_dark;
specialsprite[4] = spr_susie_shock_r;
specialsprite[5] = spr_susie_shock;
}
if (_actorname == "susiedarkeyes")
{
usprite = spr_susie_walk_up_dw;
rsprite = spr_susie_walk_right_dw;
dsprite = spr_susie_walk_down_dw;
lsprite = spr_susie_walk_left_dw;
specialsprite[4] = spr_susie_shock_r;
specialsprite[5] = spr_susie_shock;
}
... ("kris");
|
|
14
|
fun = 1;
|
|
15
|
image_speed = 0.25;
|
|
16
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (__x, __y, 10);
|
|
17
|
}
|
|
18
|
}
|
|
19
|
if (instance_exists(obj_caterpillarchara) && scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2))
|
|
20
|
{
|
|
21
|
su_actor = instance_create_depth(global.cinstance[0].x, global.cinstance[0].y, global.cinstance[0].depth, obj_actor);
|
|
22
|
su_actor.__x = sus_x;
|
|
23
|
su_actor.__y = sus_y + 8;
|
|
24
|
with (su_actor)
|
|
25
|
{
|
|
26
|
sprite_index = global.cinstance[0].sprite_index;
|
|
27
|
scr_set_facing_spritesscr_set_facing_sprites
function scr_set_facing_sprites(arg0)
{
_actorname = arg0;
name = arg0;
if (is_string(_actorname))
{
if (_actorname == "kris")
{
name = "kris";
if (global.darkzone == 0)
_actorname = "krislight";
if (global.darkzone == 1)
_actorname = "krisdark";
}
if (_actorname == "susie")
{
name = "susie";
if (global.darkzone == 0)
{
_actorname = "susielight";
if (global.chapter >= 2)
_actorname = "susielighteyes";
}
if (global.darkzone == 1)
{
if (global.chapter == 1)
_actorname = "susiedark";
if (global.chapter >= 2)
_actorname = "susiedarkeyes";
}
}
if (_actorname == "ralsei")
{
name = "ralsei";
if (global.chapter <= 1)
_actorname = "ralseihat";
if (global.chapter > 1)
_actorname = "ralseinohat";
}
if (_actorname == "noelle")
{
name = "noelle";
if (global.darkzone == 0)
_actorname = "noellelight";
if (global.darkzone == 1)
_actorname = "noelledark";
}
if (_actorname == "berdly")
{
name = "berdly";
if (global.darkzone == 0)
_actorname = "berdlylight";
if (global.darkzone == 1)
_actorname = "berdlydark";
}
if (_actorname == "krislight")
{
usprite = spr_krisu;
rsprite = spr_krisr;
dsprite = spr_krisd;
lsprite = spr_krisl;
}
if (_actorname == "krisdark")
{
usprite = spr_krisu_dark;
rsprite = spr_krisr_dark;
dsprite = spr_krisd_dark;
lsprite = spr_krisl_dark;
}
if (_actorname == "susielight")
{
usprite = spr_susieu;
rsprite = spr_susier;
dsprite = spr_susied;
lsprite = spr_susiel;
}
if (_actorname == "susielighteyes")
{
usprite = spr_susie_walk_up_lw;
rsprite = spr_susie_walk_right_lw;
dsprite = spr_susie_walk_down_lw;
lsprite = spr_susie_walk_left_lw;
}
if (_actorname == "susiedark")
{
usprite = spr_susieu_dark;
rsprite = spr_susier_dark;
dsprite = spr_susied_dark;
lsprite = spr_susiel_dark;
specialsprite[4] = spr_susie_shock_r;
specialsprite[5] = spr_susie_shock;
}
if (_actorname == "susiedarkeyes")
{
usprite = spr_susie_walk_up_dw;
rsprite = spr_susie_walk_right_dw;
dsprite = spr_susie_walk_down_dw;
lsprite = spr_susie_walk_left_dw;
specialsprite[4] = spr_susie_shock_r;
specialsprite[5] = spr_susie_shock;
}
... ("susie");
|
|
28
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (__x, __y, 10);
|
|
29
|
}
|
|
30
|
with (global.cinstance[0])
|
|
31
|
visible = 0;
|
|
32
|
}
|
|
33
|
with (obj_caterpillarchara)
|
|
34
|
{
|
|
35
|
if (visible == 1)
|
|
36
|
{
|
|
37
|
me = scr_dark_marker_depthscr_dark_marker_depth
function scr_dark_marker_depth(arg0, arg1, arg2, arg3)
{
thismarker = instance_create_depth(arg0, arg1, arg2, obj_marker);
with (thismarker)
{
sprite_index = arg3;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (x, y, 510000, sprite_index);
|
|
38
|
visible = 0;
|
|
39
|
if (name == "ralsei")
|
|
40
|
{
|
|
41
|
me.sprite_index = spr_ralsei_wave_start;
|
|
42
|
me.image_speed = 0.2;
|
|
43
|
with (me)
|
|
44
|
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_var, 15, "sprite_index", spr_ralsei_wave_down);
|
|
45
|
}
|
|
46
|
}
|
|
47
|
}
|
|
48
|
contimer = 0;
|
|
49
|
con = 11;
|
|
50
|
}
|
|
51
|
if (con == 11)
|
|
52
|
{
|
|
53
|
contimer++;
|
|
54
|
if (contimer >= 11)
|
|
55
|
{
|
|
56
|
con = 1;
|
|
57
|
with (obj_actor)
|
|
58
|
visible = 0;
|
|
59
|
with (obj_dw_leave)
|
|
60
|
{
|
|
61
|
if (bottom == 1)
|
|
62
|
draw_kris = 1;
|
|
63
|
}
|
|
64
|
with (obj_dw_leave)
|
|
65
|
{
|
|
66
|
if (bottom == 1)
|
|
67
|
con = 15;
|
|
68
|
else
|
|
69
|
con = 1;
|
|
70
|
}
|
|
71
|
}
|
|
72
|
}
|