Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_pellet_circle_pellet_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
distance_speed_current += 0.05
4
distance_current += distance_speed_current
5
x = xstart + (lengthdir_x(distance_current, direction))
6
y = ystart + (lengthdir_y(distance_current, direction))
7
if (distance_to_point(xstart, ystart) > 220)
8
{
9
    image_alpha -= 0.2
10
    if (image_alpha <= 0)
11
        instance_destroy()
12
}