Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_mechanical_drone_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (hp_self <= 0)
4
{
5
    if (sprite_index != spr_battle_flowey_mechanical_drone_explode)
6
    {
7
        sprite_index = spr_battle_flowey_mechanical_drone_explode
8
        image_index = 0
9
        audio_play_sound(snd_badexplosion, 1, 0)
10
    }
11
    else if (image_index >= (image_number - 1))
12
        instance_destroy()
13
}
14
sin_deg += speed_self
15
if (sin_deg > 360)
16
    sin_deg -= 360
17
y = ystart + y_variation * sin(degtorad(sin_deg))
18
event_inherited()