Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_boulder_zone_Alarm_0

(view raw script w/o annotations or w/e)
1
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))
2
{
3
    y_target = irandom_range(other.bbox_bottom, other.bbox_top)
4
    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
5
    y = y_target - 300
6
}
7
alarm[0] = irandom_range(15, 50)
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)