Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_boss_battle_2_yellow_Alarm_0

(view raw script w/o annotations or w/e)
1
if (instance_number(obj_background_boss_battle_2_snowflake_parent_yellow) < snowflake_max)
2
{
3
    var random_snowflake = irandom_range(1, 4)
4
    var snowflake_xpos = irandom_range(0, 639)
5
    switch random_snowflake
6
    {
7
        case 1:
8
            instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_1_yellow)
9
            break
10
        case 2:
11
            instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_2_yellow)
12
            break
13
        case 3:
14
            instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_3_yellow)
15
            break
16
        case 4:
17
            instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_4_yellow)
18
            break
19
        default:
20
            instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_1_yellow)
21
    }
22
23
}
24
alarm[0] = 20
alarm[0]

if (instance_number(obj_background_boss_battle_2_snowflake_parent_yellow) < snowflake_max) { var random_snowflake = irandom_range(1, 4) var snowflake_xpos = irandom_range(0, 639) switch random_snowflake { case 1: instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_1_yellow) break case 2: instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_2_yellow) break case 3: instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_3_yellow) break case 4: instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_4_yellow) break default: instance_create(snowflake_xpos, snowflake_ypos, obj_background_boss_battle_2_snowflake_1_yellow) } } alarm[0] = 20