Undertale script viewer

← back to main script listing

gml_Object_blt_loopbulletgrow_Step_0

(view raw script w/o annotations or w/e)
1
radchange = 0;
2
if (specialtimer > 0)
3
{
4
    if (radius < idealradius)
5
    {
6
        radius += 2;
7
        radchange = 1;
8
    }
9
    if (radius > idealradius)
10
        radius = idealradius;
11
}
12
else
13
{
14
    if (radius > idealradius)
15
    {
16
        radius -= 2;
17
        radchange = 2;
18
    }
19
    if (radius < idealradius)
20
        radius = idealradius;
21
}
22
if (radchange == 1)
23
{
24
    x += lengthdir_x(2, direction - 90);
25
    y += lengthdir_y(2, direction - 90);
26
}
27
if (radchange == 2)
28
{
29
    x += lengthdir_x(-2, direction - 90);
30
    y += lengthdir_y(-2, direction - 90);
31
}
32
circ = (2 * pi) * radius;
33
anglechange = 360 / (circ / speed);
34
direction += anglechange;
35
if (nxadd < xadd)
36
    nxadd += 0.125;
37
x += nxadd;
38
y += yadd;
39
specialtimer -= 1;
40
if (specialtimer < 1)
41
    idealradius = 0.1;