Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_lowpoly_vspike_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if live_call()
3
    return global.live_result;
4
if (hp_self <= 0)
5
{
6
    instance_create(x, y, obj_flowey_battle_phase_2_lowpoly_vspike_dead)
7
    var dir_mul = 360 / bullet_number
8
    for (var i = 0; i < bullet_number; i++)
9
    {
10
        var bullet = instance_create_depth(x, y, -100, obj_flowey_battle_phase_2_lowpoly_pellet)
11
        bullet.speed = 10
12
        bullet.direction = (i + 1) * dir_mul
13
    }
14
    instance_destroy()
15
}
16
if (y > 700)
17
    instance_destroy()