Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_boss_battle_2_yellow_Create_0

(view raw script w/o annotations or w/e)
1
increase_number = 24
2
instance_create((66 + increase_number), 10, obj_background_boss_battle_2_grid_yellow)
3
id_grid[0] = global.id_store
4
instance_create((574 - increase_number), 10, obj_background_boss_battle_2_grid_yellow)
5
id_grid[1] = global.id_store
6
instance_create((66 + increase_number), 128, obj_background_boss_battle_2_grid_yellow)
7
id_grid[2] = global.id_store
8
instance_create((574 - increase_number), 128, obj_background_boss_battle_2_grid_yellow)
9
id_grid[3] = global.id_store
10
sign_modifier = 1
11
time_elapsed = 0
12
time_max = 50
13
time_increase = 1
14
max_rise = increase_number
15
time_elapsed_decrease = 6
16
snowflake_max = 20
17
snowflake_ypos = -20
18
alarm[0] = 1
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