Undertale script viewer

← back to main script listing

gml_Object_blt_clawbullet_white_Create_0

(view raw script w/o annotations or w/e)
1
dmg = 0;
2
l = 0;
3
parent = 0;
4
alarm[3] = 2;
gml_Object_blt_clawbullet_white_Alarm_3.gml

if (parent == 1) { alarm[4] = 6; speed = 1.5 + random(0.5); g = floor(random(2)); if (y < global.idealborder[2]) { if (x > (global.idealborder[0] + (c_borderwidth(0) / 2))) g = 0; else g = 1; } if (y > global.idealborder[3]) { if (x > (global.idealborder[0] + (c_borderwidth(0) / 2))) g = 1; else g = 0; } if (g == 1) rotdir = 1 + random(1); if (g == 0) rotdir = -1 - random(1); startdir = scr_perpendicular(); startspeed = speed; } friction = -0.1; visible = true; direction = startdir; speed = startspeed;
5
startspeed = 0;
6
image_speed = 0.5;
7
startdir = 0;
8
limit = 4 + round(random(3));
9
startgrav = 0;
10
rotdir = 0;
11
x -= 12;
12
y -= 12;