Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_organic_bloodcell_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
organic_spawn_chance_max = 18
4
organic_spawn_chance_current = 18
5
for (var i = 0; i < 12; i++)
6
{
7
    var bul = instance_create_depth(irandom_range(100, 540), irandom_range(100, 380), -100, obj_flowey_battle_phase_2_organic_bloodcell)
8
    bul.direction = irandom_range(0, 360)
9
    with (bul)
10
    {
11
        while place_meeting(x, y, obj_heart_battle_fighting_parent)
12
            x += 50
13
    }
14
}