Undertale script viewer

← back to main script listing

gml_Object_obj_trueflymett_Other_10

(view raw script w/o annotations or w/e)
1
for (i = 0; i < 16; i += 1)
2
{
3
    if (i != currentideal && i != (currentideal + 1))
4
    {
5
        sb = instance_create(x + 13, y + 20, obj_sugarbullet);
6
        sb.idealspot = i;
7
    }
8
}
9
currentideal += (choose(1, 2) * choose(-1, 1));
10
if (currentideal < 1)
11
    currentideal += 2;
12
if (currentideal > 14)
13
    currentideal -= 2;