Deltarune script viewer

← back to main script listing

gml_Object_obj_saucer_ufo_bullet_Create_0

(view raw script w/o annotations or w/e)
1
destroyoffscreen = true;
2
tolerance = 64;
3
teller = 0;
4
if (instance_exists(obj_mainchara))
5
{
6
    with (obj_mainchara)
7
    {
8
        if (press_r)
9
            other.teller = wspeed;
10
        else if (press_l)
11
            other.teller = -wspeed;
12
        else
13
            other.teller = 0;
14
    }
15
}
16
move_towards_point(charaHeartX() + (teller * 20), charaHeartY(), 1);
17
friction = -0.3;
18
alarm[0] = 300;
19
image_xscale = 0.2;
20
image_yscale = 2;
21
image_angle = direction;
22
explosiontype = 0;
23
target = 3;
24
active = 1;
25
timer = 0;
26
damage = 10;
27
aimtimer = 0;
28
deathtimer = 0;