Undertale script viewer

← back to main script listing

gml_Object_obj_astigmatism_bullet_Step_0

(view raw script w/o annotations or w/e)
1
siner += 1;
2
y += (cos(siner / 3) * 0.6);
3
asiner += av;
4
if (instance_exists(kid))
5
{
6
    kid.x = -2 + x + (sin(asiner / 16) * factor1);
7
    kid.y = y + (cos(asiner / 16) * factor1);
8
}
9
if (instance_exists(kid2))
10
{
11
    kid2.x = x + (sin(asiner / 16) * factor2);
12
    kid2.y = y + (cos(asiner / 16) * factor2);
13
}
14
if (x < 0)
15
    instance_destroy();
16
if (image_alpha < 1 && off == 0)
17
    image_alpha += 0.1;
18
if (x < (global.idealborder[0] - 30))
19
    off = 1;
20
if (off == 1)
21
    image_alpha -= 0.05;
22
if (image_alpha < 0.1 && off == 1)
23
    instance_destroy();