Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_bacgkround_boss_battle_axis_number_spawner_Create_0

(view raw script w/o annotations or w/e)
1
part_x = (round((irandom_range(0, room_width)) / 40)) * 40
2
var move = false
3
while (move == false)
4
{
5
    move = true
6
    with (obj_bacgkround_boss_battle_axis_number_spawner)
7
    {
8
        if (id != other.id && part_x == other.part_x)
9
        {
10
            other.part_x += 20
11
            move = false
12
        }
13
    }
14
}
15
creator = obj_background_boss_battle_axis_yellow
16
part_size = choose(1, 1, 1, 2, 2, 3)
17
size_multiplier = 12 * part_size
18
number_count = 9
19
alarm[0] = 1
alarm[0]

part_type_size(creator.part_axis_bg, part_size, part_size, 0, 0) part_particles_create(creator.part_axis_bg_sys, part_x, y, creator.part_axis_bg, 1) if (number_count > 0) { alarm[0] = size_multiplier / 6 number_count-- } else instance_destroy()