Undertale script viewer

← back to main script listing

gml_Object_obj_spinbulletgen_friendscene_Alarm_0

(view raw script w/o annotations or w/e)
1
radius = 30;
2
ang = 0;
3
for (i = 0; i < 20; i += 1)
4
{
5
    ang = i * 18;
6
    xx = lengthdir_x(radius, ang);
7
    yy = lengthdir_y(radius, ang);
8
    fp = instance_create(xx + x, yy + y, obj_friendprotector);
9
    fp.direction = ang;
10
    fp.speed = 0.01;
11
    fp.go = 1;
12
}
13
spec = 2;