Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_mansion_projection_Create_0

(view raw script w/o annotations or w/e)
1
swatch_npc_a = instance_create(135, 285, obj_npc_butler);
2
with (swatch_npc_a)
3
{
4
    sprite_index = spr_npc_swatchling_up;
5
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
6
    current_pal = yellow;
7
}
8
swatch_npc_b = instance_create(265, 255, obj_npc_butler);
9
with (swatch_npc_b)
10
{
11
    sprite_index = spr_npc_swatchling_up;
12
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
}
14
swatch_npc_c = instance_create(395, 285, obj_npc_butler);
15
with (swatch_npc_c)
16
{
17
    sprite_index = spr_npc_swatchling_up;
18
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
19
    current_pal = orange;
20
}
21
projection = instance_create(240, 180, obj_readable_room1);
22
projection.image_xscale = 8;
23
projection.image_yscale = 1.5;