|
1
|
if (!shadinit)
|
|
2
|
{
|
|
3
|
shadinit = 1;
|
|
4
|
with (instance_create(0, 0, obj_floorshadow))
|
|
5
|
{
|
|
6
|
target = 1049;
|
|
7
|
yoff = -8;
|
|
8
|
stretch = 3;
|
|
9
|
}
|
|
10
|
with (instance_create(0, 0, obj_floorshadow))
|
|
11
|
{
|
|
12
|
target = 1235;
|
|
13
|
yoff = -4;
|
|
14
|
stretch = 3;
|
|
15
|
}
|
|
16
|
with (obj_mainchara)
|
|
17
|
image_blend = c_black;
|
|
18
|
with (obj_caterpillarchara)
|
|
19
|
image_blend = c_black;
|
|
20
|
with (instance_create(0, 0, obj_sprhighlight))
|
|
21
|
{
|
|
22
|
target = 1049;
|
|
23
|
yoffset = 4;
|
|
24
|
}
|
|
25
|
with (instance_create(0, 0, obj_sprhighlight))
|
|
26
|
{
|
|
27
|
target = 1235;
|
|
28
|
yoffset = 4;
|
|
29
|
}
|
|
30
|
}
|
|
31
|
myfloor.image_blend = merge_color(c_black, obj_darkfountain.colcol, 0.5);
|
|
32
|
with (obj_sprhighlight)
|
|
33
|
image_blend = obj_darkfountain.colcol;
|
|
34
|
with (myint)
|
|
35
|
{
|
|
36
|
if (myinteract == 3)
|
|
37
|
{
|
|
38
|
global.interact = 1;
|
|
39
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
40
|
msgsetloc(0, Face 2* Pretty sick,Delay 11 right?Wait for input"\\E2* Pretty sick^1, right?/", "obj_dw_churchb_fountain_slash_Step_0_gml_46_0" );
|
|
41
|
msgnextloc(Face A* You should try making one sometime,Delay 11 it's cool.Wait for inputClose Message"\\EA* You should try making one sometime^1, it's cool./%", "obj_dw_churchb_fountain_slash_Step_0_gml_47_0" );
|
|
42
|
if (talked)
|
|
43
|
{
|
|
44
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
45
|
msgsetloc(0, * (It glows with a backwards light.)Wait for inputClose Message"* (It glows with a backwards light.)/%", "obj_dw_churchb_fountain_slash_Step_0_gml_52_0" );
|
|
46
|
}
|
|
47
|
with (d_make())
|
|
48
|
side = 1;
|
|
49
|
talked++;
|
|
50
|
myinteract = 4;
|
|
51
|
}
|
|
52
|
if (myinteract == 4 && !d_ex())
|
|
53
|
{
|
|
54
|
myinteract = 0;
|
|
55
|
global.interact = 0;
|
|
56
|
}
|
|
57
|
}
|
|
58
|
if (con == 0)
|
|
59
|
{
|
|
60
|
con = 1;
|
|
61
|
alarm[0] = 1; gml_Object_obj_dw_churchb_fountain_Alarm_0.gml
con++;
|
|
62
|
global.interact = 1;
|
|
63
|
global.facing = 0;
|
|
64
|
with (obj_floorshadow)
|
|
65
|
instance_destroy();
|
|
66
|
with (obj_sprhighlight)
|
|
67
|
instance_destroy();
|
|
68
|
}
|
|
69
|
if (con == 2)
|
|
70
|
{
|
|
71
|
con = 3;
|
|
72
|
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;
} ();
|
|
73
|
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;
}
}
}
} ();
|
|
74
|
_floor_shadow_kris = instance_create(0, 0, obj_floorshadow);
|
|
75
|
with (_floor_shadow_kris)
|
|
76
|
{
|
|
77
|
yoff = -8;
|
|
78
|
stretch = 3;
|
|
79
|
}
|
|
80
|
_floor_shadow_kris.target = kr_actor;
|
|
81
|
_floor_shadow_susie = instance_create(0, 0, obj_floorshadow);
|
|
82
|
with (_floor_shadow_susie)
|
|
83
|
{
|
|
84
|
yoff = -24;
|
|
85
|
stretch = 3;
|
|
86
|
}
|
|
87
|
_floor_shadow_susie.target = su_actor;
|
|
88
|
_highlight_kris = instance_create(0, 0, obj_sprhighlight);
|
|
89
|
with (_highlight_kris)
|
|
90
|
yoffset = 4;
|
|
91
|
_highlight_kris.target = kr_actor;
|
|
92
|
_highlight_susie = instance_create(0, 0, obj_sprhighlight);
|
|
93
|
with (_highlight_susie)
|
|
94
|
yoffset = 4;
|
|
95
|
_highlight_susie.target = su_actor;
|
|
96
|
with (obj_actor)
|
|
97
|
image_blend = c_black;
|
|
98
|
var y_offset = 20;
|
|
99
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
100
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_kris_dw_landed);
|
|
101
|
c_setxyc_setxy
function c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
} (256, 221 + y_offset);
|
|
102
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
103
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_susie_dw_landed);
|
|
104
|
c_setxyc_setxy
function c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
} (323, 205 + y_offset);
|
|
105
|
c_mus2c_mus2
function c_mus2(arg0, arg1, arg2)
{
c_cmd("mus", arg0, arg1, arg2, 0);
} ("initloop", "wind_highplace.ogg", 0);
|
|
106
|
c_mus2c_mus2
function c_mus2(arg0, arg1, arg2)
{
c_cmd("mus", arg0, arg1, arg2, 0);
} ("volume", 0, 0);
|
|
107
|
c_mus2c_mus2
function c_mus2(arg0, arg1, arg2)
{
c_cmd("mus", arg0, arg1, arg2, 0);
} ("volume", 1, 180);
|
|
108
|
c_var_lerp_instancec_var_lerp_instance
function c_var_lerp_instance()
{
if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
}
function c_lerp_var_instance()
{
if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
function c_lerpvar_instance()
{
if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} (blackall, "image_alpha", 1, 0, 180);
|
|
109
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (210);
|
|
110
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
111
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
112
|
c_imageindexc_imageindex
function c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
} (1);
|
|
113
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (4);
|
|
114
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
115
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
116
|
c_addxyc_addxy
function c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
} (8, 0);
|
|
117
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (_floor_shadow_susie, "yoff", -4);
|
|
118
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
119
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
120
|
c_imageindexc_imageindex
function c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
} (1);
|
|
121
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (4);
|
|
122
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
123
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
124
|
c_addxyc_addxy
function c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
} (0, 4);
|
|
125
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (30);
|
|
126
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
127
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face V* I...Delay 11 I actually did it.Wait for input"\\EV* I..^1. I actually did it./", "obj_dw_churchb_fountain_slash_Step_0_gml_168_0" );
|
|
128
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 7* Hey,Delay 11 Kris,Delay 11 I made a Dark Fountain!Wait for inputClose Message"\\E7* Hey^1, Kris^1, I made a Dark Fountain!/%", "obj_dw_churchb_fountain_slash_Step_0_gml_169_0" );
|
|
129
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
130
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
131
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("l");
|
|
132
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
133
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("susie");
|
|
134
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face 2* Pretty cool,Delay 11 right...? Heh.Wait for input"\\E2* Pretty cool^1, right...? Heh./", "obj_dw_churchb_fountain_slash_Step_0_gml_179_0" );
|
|
135
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face Y* Maybe I'll let you do it next time.Wait for input"\\EY* Maybe I'll let you do it next time./", "obj_dw_churchb_fountain_slash_Step_0_gml_180_0" );
|
|
136
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face A* Let's go.Wait for inputClose Message"\\EA* Let's go./%", "obj_dw_churchb_fountain_slash_Step_0_gml_181_0" );
|
|
137
|
c_talkc_talk
function c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
} ();
|
|
138
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (1);
|
|
139
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
140
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("u");
|
|
141
|
c_wait_boxc_wait_box
function c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
} (2);
|
|
142
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
143
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("l");
|
|
144
|
c_wait_talkc_wait_talk
function c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
} ();
|
|
145
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (id, "clean_up", true);
|
|
146
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (10);
|
|
147
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
148
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("d");
|
|
149
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
150
|
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 c_delay_customfunc(arg0, arg1, arg2 = -1)
{
if (instance_exists(obj_cutscene_master))
c_cmd_x("delaycmd", arg0, "customfunc", arg2, arg1, 0, 0);
} (function()
|
|
151
|
{
|
|
152
|
with (obj_caterpillarchara)
|
|
153
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
154
|
obj_caterpillarchara.visible = 1;
|
|
155
|
obj_caterpillarchara.fun = 0;
|
|
156
|
});
|
|
157
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
158
|
}
|
|
159
|
if (clean_up)
|
|
160
|
{
|
|
161
|
clean_up = false;
|
|
162
|
obj_caterpillarchara.fun = 1;
|
|
163
|
obj_caterpillarchara.x = su_actor.x;
|
|
164
|
obj_caterpillarchara.y = su_actor.y;
|
|
165
|
obj_caterpillarchara.sprite_index = su_actor.sprite_index;
|
|
166
|
obj_caterpillarchara.image_index = su_actor.image_index;
|
|
167
|
with (obj_caterpillarchara)
|
|
168
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
169
|
shadinit = 0;
|
|
170
|
exit;
|
|
171
|
}
|
|
172
|
if (con == 3 && !i_ex(obj_cutscene_master))
|
|
173
|
{
|
|
174
|
global.interact = 0;
|
|
175
|
global.facing = 0;
|
|
176
|
global.plot = 230;
|
|
177
|
con = 99;
|
|
178
|
with (_floor_shadow_kris)
|
|
179
|
instance_destroy();
|
|
180
|
with (_floor_shadow_susie)
|
|
181
|
instance_destroy();
|
|
182
|
with (_highlight_kris)
|
|
183
|
instance_destroy();
|
|
184
|
with (_highlight_susie)
|
|
185
|
instance_destroy();
|
|
186
|
}
|