Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_fella_spikes_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (spawner != -4 && instance_exists(spawner))
4
{
5
    x = spawner.x + lengthdir_x(120, orbit_direction);
6
    y = spawner.y + lengthdir_y(120, orbit_direction);
7
    orbit_direction += orbit_speed;
8
    if (orbit_direction > 360)
9
        orbit_direction -= 360;
10
}
11
else
12
{
13
    image_alpha -= 0.3;
14
    if (image_alpha <= 0)
15
        instance_destroy();
16
}