Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullet_rain_Step_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 1)
2
{
3
    instance_destroy();
4
    exit;
5
}
6
event_inherited();
7
if (overpower)
8
{
9
    with (obj_bullet_homing)
10
    {
11
        if (point_distance(x, y, other.x, other.y) < (10 * other.overpower))
12
        {
13
            instance_destroy();
14
            with (instance_create(x, y, obj_regularbullet))
15
            {
16
                active = false;
17
                spin = 1;
18
                spinspeed = random(5) - 0.25;
19
                direction = 70 + random(40);
20
                speed = 1 + random(1);
21
                image_xscale = 0.5;
22
                image_yscale = 0.5;
23
                sprite_index = spr_cakesmoke;
24
                
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_alpha", 1, 0, 30);
25
                
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(instance_destroy, 30);
26
            }
27
        }
28
    }
29
}
30
if (slowdown == true)
31
{
32
    if (gotopointer == false)
33
    {
34
        friction = 0.1;
35
        gravity = 0;
36
        destroyonhit = false;
37
    }
38
    else if (i_ex(obj_rouxls_laser_pointer_controller))
39
    {
40
        friction = 0;
41
        var aa = randx + obj_rouxls_laser_pointer_controller._mouse_x;
42
        var bb = randy + obj_rouxls_laser_pointer_controller._mouse_y;
43
        var _dir = point_direction(x, y, aa, bb);
44
        var _diff = angle_difference(_dir, direction);
45
        direction += (_diff * 0.2);
46
        gravity_direction = direction;
47
        if (speed < 4)
48
            speed += 0.2;
49
        updateimageangle = true;
50
    }
51
}
52
if (i_ex(obj_growtangle) && y > (obj_growtangle.y + 75) && updateimageangle == false)
53
    instance_destroy();