Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_1_background_leaves_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
battle_box = 3154
4
spawn_rate = 12
5
alarm[0] = 45
alarm[0]

if live_call() return global.live_result; var offset = random_range(1, 30) instance_create_depth(choose((battle_box.bbox_left - offset), (battle_box.bbox_right + offset)), random_range((battle_box.bbox_top + 15), (battle_box.bbox_bottom - 15)), -100, obj_battle_enemy_attack_ceroba_petal_bg) alarm[0] = spawn_rate if (obj_battle_enemy_attack_ceroba_petal_pile.vspeed == 0) obj_battle_enemy_attack_ceroba_petal_pile.vspeed = (-((90 / attack_length)))