Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_jackolantern_Create_0

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

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
2
damage = 18;
3
target = 4;
4
inv = 3;
5
hits = 0;
6
image_alpha = 1;
7
if (!instance_exists(obj_heart))
8
    instance_destroy();
9
wall_destroy = 0;
10
destroyonhit = false;
11
timepoints = 0;
12
point_reached = 0;
13
squish = 1;
14
move_directly = false;
15
path = obj_dbulletcontroller.path;
16
direct_dir = 180;
17
direct_spd = 0;
18
direct_adjust = -1;
19
adjust_delay = 10;
20
image_speed = 0;
21
speed_scale = false;
22
politer = false;
23
polite = false;
24
pause = false;
25
small = false;
26
if (obj_growtangle.sprite_index != spr_ghost_house_chimney)
27
{
28
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_yscale", 0, 1, 19, -2, "out");
29
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_xscale", 0, 1, 19, -2, "out");
30
}
31
timer = -12;
32
obj_heart.wspeed = 0;
33
tutu = false;
34
fully_aggro = false;
35
draw_hand = false;
36
hand_x = x;
37
hand_y = y;
38
scaredy = false;
39
if (!instance_exists(obj_jackenstein_enemy) || !obj_jackenstein_enemy.scaredycat)
40
{
41
    with (obj_gh_fireball_bouncy)
42
    {
43
        store_hspd = hspeed;
44
        store_vspd = vspeed;
45
        store_image = image_speed;
46
        image_speed = 0;
47
        speed = 0;
48
        active = false;
49
    }
50
    with (obj_gh_fireball_linear)
51
    {
52
        rate = 0;
53
        active = false;
54
    }
55
    with (obj_gh_fireball_mobius)
56
    {
57
        rate = 0;
58
        active = false;
59
    }
60
    with (obj_gh_fireball_hop)
61
    {
62
        rate = 0;
63
        active = false;
64
    }
65
    with (obj_gh_fireball_square)
66
    {
67
        store_spd = path_speed;
68
        path_speed = 0;
69
    }
70
}
71
linked_block = -4;
72
grazepoints = 0;
73
if (instance_number(object_index) > 1)
74
    polite = 2;