Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_caterpillarchara_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
2
image_speed = 0;
3
darkmode = global.darkzone;
4
if (darkmode == 1)
5
{
6
    image_xscale = 2;
7
    image_yscale = 2;
8
}
9
walk = 0;
10
fun = 0;
11
runmove = 0;
12
dir = 0;
13
walkbuffer = 0;
14
walktimer = 0;
15
blushtimer = 0;
16
target = 12;
17
usprite = spr_susieu_dark;
18
dsprite = spr_susied_dark;
19
rsprite = spr_susier_dark;
20
lsprite = spr_susiel_dark;
21
if (global.plot >= 240)
22
{
23
    usprite = spr_susieu_dark;
24
    dsprite = spr_susied_dark_eyes;
25
    rsprite = spr_susier_dark_eyes;
26
    lsprite = spr_susiel_dark_eyes;
27
}
28
usprite_blush = spr_ralseiu;
29
dsprite_blush = spr_ralseid;
30
rsprite_blush = spr_ralseir_blush;
31
lsprite_blush = spr_ralseil_blush;
32
parent = obj_mainchara;
33
pd = parent.dsprite;
34
pr = parent.rsprite;
35
pl = parent.lsprite;
36
pu = parent.usprite;
37
for (i = 0; i < 25; i += 1)
38
{
39
    remx[i] = obj_mainchara.x;
40
    remy[i] = obj_mainchara.y;
41
    facing[i] = global.facing;
42
}
43
depth = obj_mainchara.depth + 5;
44
mywidth = sprite_width;
45
myheight = sprite_height;