Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_laser_grid_Create_0

(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
var gap = 75
5
for (var i = 0; i < 14; i++)
6
{
7
    var laser = instance_create_depth(battle_box.x, (battle_box.y + gap * 0.5 - i * gap), -100, obj_battle_enemy_attack_axis_blue_laser_grid)
8
    laser.image_angle = 0
9
    laser.speed_target = 2
10
}
11
obj_heart_battle_fighting_parent.movement_mode = 2
12
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() //gml_Script_scr_enable_battle_box_surface { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer) }
()
13
attack_interval = room_speed * 1.25
14
attack_count = 6
15
scene = 0
16
cutscene_timer = 0
17
alarm[0] = 10
alarm[0]

if live_call() return global.live_result; var battle_box = obj_dialogue_box_battle_transformation_any var current_side = choose("hor", "ver") if (current_side == "hor") { var spawn_x = choose((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)) var spawn_y = irandom_range((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80)) } else { spawn_y = choose((battle_box.bbox_top - 80), (battle_box.bbox_bottom + 80)) spawn_x = irandom_range((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)) } var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss) ball.direction = point_direction(ball.x, ball.y, battle_box.x, battle_box.y) ball.speed = 3 if (attack_count > 0) { attack_count -= 1 alarm[0] = attack_interval } else instance_destroy()