|
1
|
con = -1;
|
|
2
|
var bratty_door = instance_create(920, 60, obj_readable_room1);
|
|
3
|
bratty_door.image_xscale = 1.5;
|
|
4
|
if (global.chapter == 2)
|
|
5
|
{
|
|
6
|
var froggit_npc = instance_create(1050, 190, obj_npc_room);
|
|
7
|
froggit_npc.sprite_index = spr_smallfrog;
|
|
8
|
with (froggit_npc)
|
|
9
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
10
|
var rabbit_npc = instance_create(1135, 105, obj_npc_room);
|
|
11
|
rabbit_npc.sprite_index = spr_npc_bunbun;
|
|
12
|
with (rabbit_npc)
|
|
13
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
14
|
var mw_npc = instance_create(1295, 105, obj_npc_room);
|
|
15
|
mw_npc.sprite_index = spr_npc_mikewazowski;
|
|
16
|
with (mw_npc)
|
|
17
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
18
|
}
|
|
19
|
if (global.chapter == 4)
|
|
20
|
{
|
|
21
|
if (global.chapter >= 2)
|
|
22
|
{
|
|
23
|
with (obj_npc_room)
|
|
24
|
instance_destroy();
|
|
25
|
}
|
|
26
|
if (global.plot < 95)
|
|
27
|
{
|
|
28
|
var mc_npc = instance_create(1290, 96, obj_npc_room);
|
|
29
|
mc_npc.sprite_index = spr_npc_manticore;
|
|
30
|
with (mc_npc)
|
|
31
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
32
|
var sans_npc = instance_create(710, 62, obj_npc_facing);
|
|
33
|
with (sans_npc)
|
|
34
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
35
|
var grill_marker = 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;
} (689, 23, spr_cattyhouse_grill);
|
|
36
|
with (grill_marker)
|
|
37
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
38
|
grill_marker.image_speed = 0.15;
|
|
39
|
}
|
|
40
|
if (global.plot >= 300)
|
|
41
|
{
|
|
42
|
with (obj_readable_room1)
|
|
43
|
{
|
|
44
|
if (x >= 500 && x < 1400)
|
|
45
|
instance_destroy();
|
|
46
|
}
|
|
47
|
var bratty_marker = instance_create(800, 0, obj_marker_palette);
|
|
48
|
bratty_marker.sprite_index = bg_building_brattyhouse_night;
|
|
49
|
bratty_marker.depth = 949996;
|
|
50
|
bratty_marker.current_palette = 2763;
|
|
51
|
bratty_marker.palette_index = 1;
|
|
52
|
var door_readable = instance_create(526, 76, obj_readable_room1);
|
|
53
|
door_readable.image_xscale = 1.6;
|
|
54
|
door_readable.image_yscale = 0.6;
|
|
55
|
door_readable.extflag = "night_door";
|
|
56
|
door_readable = instance_create(920, 76, obj_readable_room1);
|
|
57
|
door_readable.image_xscale = 1.6;
|
|
58
|
door_readable.image_yscale = 0.6;
|
|
59
|
door_readable.extflag = "night_door";
|
|
60
|
door_readable = instance_create(1102, 86, obj_readable_room1);
|
|
61
|
door_readable.extflag = "night_door";
|
|
62
|
}
|
|
63
|
}
|