Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_warning_Alarm_1

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
for (var i = 0; i < 20; i++)
5
{
6
    var bullet = instance_create_depth(irandom_range(bbox_left, bbox_right), irandom_range((battle_box.bbox_top - 10), (battle_box.bbox_top - 100)), -100, obj_battle_enemy_attack_asgore_warning_flame)
7
    bullet.vspeed = 12
8
}
9
for (i = 0; i < 20; i++)
10
{
11
    bullet = instance_create_depth(irandom_range(bbox_left, bbox_right), irandom_range((battle_box.bbox_bottom + 10), (battle_box.bbox_bottom + 100)), -100, obj_battle_enemy_attack_asgore_warning_flame)
12
    bullet.vspeed = -12
13
}
14
audio_play_sound(snd_soul_gameover_hit_break, 1, 0)
15
instance_destroy()