Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_sandcastle_sandcastle_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket))
2
{
3
    if (place_meeting(x, y, obj_battle_enemy_attack_dunebud_sandcastle_bucket))
4
    {
5
        var target = 2488;
6
        draw_sprite_clip(sprite_index, image_index, x, y, bbox_left - 10, target.bbox_bottom + 1, (bbox_right - bbox_left) + 20, bbox_bottom - target.bbox_bottom);
7
    }
8
    else
9
    {
10
        draw_sprite(sprite_index, image_index, x, y);
11
    }
12
}
13
else
14
{
15
    draw_sprite(sprite_index, image_index, x, y);
16
}