Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_attack_glass_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var battle_box = 3154;
4
if (bullet_hit_overlay > 0.01)
5
    bullet_hit_overlay = lerp(bullet_hit_overlay, 0, 0.15);
6
else
7
    bullet_hit_overlay = 0;
8
if (y > (battle_box.bbox_bottom + 10))
9
{
10
    image_alpha -= 0.2;
11
    if (image_alpha <= 0)
12
        instance_destroy(self, false);
13
}
14
else if (image_alpha < 1)
15
{
16
    image_alpha += 0.25;
17
}
18
if (destroy_timer > 0)
19
    destroy_timer--;
20
else if (destroy_timer == 0)
21
    instance_destroy();