Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_boulder_zone_Create_0

(view raw script w/o annotations or w/e)
1
if (global.dunes_flag[16] > 0)
2
{
3
    instance_destroy()
4
    return;
5
}
6
alarm[0] = 1
alarm[0]

with (instance_create(irandom_range((bbox_left + sprite_get_width(spr_dunes_boulder_shadow) / 2), (bbox_right - sprite_get_width(spr_dunes_boulder_shadow) / 2)), 0, obj_dunes_boulders)) { y_target = irandom_range(other.bbox_bottom, other.bbox_top) y_target = (clamp(y_target, (other.bbox_top + sprite_height / 2 + sprite_get_height(spr_dunes_boulder_shadow) / 2), other.bbox_bottom)) - sprite_height / 2 - sprite_get_height(spr_dunes_boulder_shadow) / 2 y = y_target - 300 } alarm[0] = irandom_range(15, 50)