Undertale script viewer

← back to main script listing

gml_Object_obj_spinbullet_final_gen_Create_0

(view raw script w/o annotations or w/e)
1
centerx = x;
2
centery = y;
3
x = centerx;
4
y = centery;
5
side = choose(1, -1);
6
num = 0;
7
direction = 0;
8
add_dir = random(360);
9
maxnum = 20;
10
trip = 1;
11
radius = 50;
12
counter = 0;
13
spinbullet[0] = 999999;
14
for (i = 0; i <= maxnum; i += 1)
15
    spinbullet[i] = 847873482423472384;
16
if ((centery + radius) > room_height)
17
{
18
    centery -= ((centery + radius) - room_height);
19
    y = centery;
20
    add_dir = 20 + random(140);
21
}
22
memx = 0;
23
memy = 0;
24
if (instance_exists(obj_vsflowey_heart))
25
{
26
    memx = obj_vsflowey_heart.x;
27
    memy = obj_vsflowey_heart.y;
28
}