Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_energy_balls_creator_Create_0

(view raw script w/o annotations or w/e)
1
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) }
()
2
attack_interval = 12
3
depth = -9999
4
alarm[0] = 1
alarm[0]

var battle_box = 3154 var spawn_dir = irandom_range(0, 359) var spawn_x = 320 + (lengthdir_x(250, spawn_dir)) var spawn_y = 320 + (lengthdir_y(250, spawn_dir)) instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball) alarm[0] = attack_interval
5
alarm[1] = room_speed * 3
alarm[1]

instance_destroy()