Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_attack_4_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var box = 3154;
4
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer); }
();
5
var xx = choose(box.bbox_left + 40, box.bbox_right - 40);
6
var yy = choose(box.bbox_top + 40, box.bbox_bottom - 40);
7
instance_create_depth(xx, yy, obj_heart_battle_fighting_parent.depth - 2, obj_battle_enemy_attack_guardener_launcher_fadein);