Deltarune (Chapter 3) 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()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
2
image_speed = 0;
3
if (global.darkzone)
4
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(id);
5
walk = 0;
6
fun = 0;
7
follow = 1;
8
runmove = 0;
9
dir = 0;
10
walkbuffer = 0;
11
walktimer = 0;
12
slided = 0;
13
specialed = 0;
14
init_clothes = false;
15
blushtimer = 0;
16
name = "susie";
17
target = 12;
18
usprite = spr_susieu_dark;
19
dsprite = spr_susied_dark;
20
rsprite = spr_susier_dark;
21
lsprite = spr_susiel_dark;
22
slidesprite = spr_susie_slide;
23
climbsprite = 2409;
24
if (global.chapter >= 2)
25
{
26
    usprite = spr_susie_walk_up_dw;
27
    rsprite = spr_susie_walk_right_dw;
28
    lsprite = spr_susie_walk_left_dw;
29
    dsprite = spr_susie_walk_down_dw;
30
    if (global.darkzone == 0)
31
    {
32
        usprite = spr_susie_walk_up_lw;
33
        rsprite = spr_susie_walk_right_lw;
34
        lsprite = spr_susie_walk_left_lw;
35
        dsprite = spr_susie_walk_down_lw;
36
    }
37
}
38
usprite_blush = spr_ralseiu;
39
dsprite_blush = spr_ralseid;
40
rsprite_blush = spr_ralseir_blush;
41
lsprite_blush = spr_ralseil_blush;
42
if (global.chapter >= 2)
43
{
44
    usprite_blush = spr_ralsei_walk_up;
45
    dsprite_blush = spr_ralsei_walk_down_blush;
46
    rsprite_blush = spr_ralsei_walk_right_blush;
47
    lsprite_blush = spr_ralsei_walk_left_blush;
48
}
49
parent = obj_mainchara;
50
pd = parent.dsprite;
51
pr = parent.rsprite;
52
pl = parent.lsprite;
53
pu = parent.usprite;
54
for (i = 0; i < 75; i += 1)
55
{
56
    remx[i] = parent.x;
57
    remy[i] = parent.y;
58
    facing[i] = global.facing;
59
    sliding[i] = 0;
60
    special[i] = 0;
61
    if (global.chapter == 4 && room == room_dw_rotating_tower)
62
    {
63
        tower_angle[i] = 0;
64
        tower_yoffset[i] = 480;
65
    }
66
}
67
depth = parent.depth + 5;
68
mywidth = sprite_width;
69
myheight = sprite_height;
70
xoffset = 0;
71
yoffset = 0;
72
init = 0;
73
forget = 0;
74
ignoredepth = 0;
75
halign = 6;
76
valign = 16;