Undertale script viewer

← back to main script listing

gml_Object_obj_loopbulletgrowgen_Create_0

(view raw script w/o annotations or w/e)
1
xadd = 0;
2
totalbt = 8;
3
radius = 2;
4
idealradius = 55;
5
circ = radius * 2 * pi;
6
speed = 2;
7
myself = 0;
8
alarm[0] = 3;
gml_Object_obj_loopbulletgrowgen_Alarm_0.gml

if (blue == 1) blue = floor(random(2)) + 1; for (i = 0; i < totalbt; i += 1) { dir = 0 + ((i * 360) / totalbt); xx = x + lengthdir_x(radius, dir - 90); yy = y + lengthdir_y(radius, dir - 90); loopbullet = instance_create(xx, yy, blt_loopbulletgrow); loopbullet.speed = speed; loopbullet.anglechange = 360 / (circ / speed); loopbullet.direction = dir; loopbullet.xadd = xadd; loopbullet.idealradius = idealradius; loopbullet.dmg = global.monsteratk[myself]; loopbullet.specialtimer = specialtimer; if (blue == 3) blue = 2; if (blue == 1) { loopbullet.blue = 1; blue = 3; } if (blue == 2) blue = 1; }
9
blue = 0;
10
blueone = 999;
11
specialtimer = 999;