Undertale script viewer

← back to main script listing

gml_Object_obj_creditbullet_Step_0

(view raw script w/o annotations or w/e)
1
image_angle += aa;
2
if (y > 800 && vspeed > 0)
3
    instance_destroy();
4
if (x > 800 && hspeed > 0)
5
    instance_destroy();
6
if (y < -200 && vspeed < 0)
7
    instance_destroy();
8
if (x < -200 && hspeed < 0)
9
    instance_destroy();
10
if (action == 1)
11
{
12
    if (hspeed < 0 && x < (room_width - (width / 2)))
13
    {
14
        if (speed > 0)
15
            speed -= 0.5;
16
    }
17
    if (hspeed > 0 && x > (0 + (width / 2)))
18
    {
19
        if (speed > 0)
20
            speed -= 0.5;
21
    }
22
}
23
if (action == 3)
24
{
25
    if (x < -50 && hspeed < 0)
26
        x += 710;
27
    if (x > (room_width + 50) && hspeed > 0)
28
        x -= 710;
29
}