Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_horse_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
sin_deg += sin_inc
4
if (sin_deg > 360)
5
    sin_deg -= 360
6
y = ystart + sin(degtorad(sin_deg)) * y_variation
7
if (abs(x - 320) > 900)
8
    instance_destroy()
9
if (can_explode == true)
10
{
11
    if (!alarm[0])
12
        alarm[0] = 20
alarm[0]

if live_call() return global.live_result; var tar = instance_create_depth(x, y, (depth - 1), obj_flowey_battle_gray_horse_target) tar.spawner = id
13
    can_explode = false
14
}