Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_organic_virus_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!instance_exists(obj_flowey_battle_phase_2_organic_virus))
4
{
5
    if (!alarm[0])
6
        alarm[0] = irandom_range(30, 90)
alarm[0]

var spawn_dir = irandom_range(0, 360) var spawn_dist = 200 var spawn_x = obj_heart_battle_fighting_parent.x + (lengthdir_x(spawn_dist, spawn_dir)) var spawn_y = obj_heart_battle_fighting_parent.y + (lengthdir_y(spawn_dist, spawn_dir)) instance_create_depth(spawn_x, spawn_y, -100, obj_flowey_battle_phase_2_organic_virus)
7
}