Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_package_junk_Step_0

(view raw script w/o annotations or w/e)
1
junk_vsp += junk_grav;
2
x += lengthdir_x(junk_hsp, junk_direction);
3
y += junk_vsp;
4
image_angle += 5;
5
if (y > battle_box_bottom)
6
    fade_out = true;
7
if (image_alpha > 0 && fade_out == true)
8
{
9
    image_alpha -= 0.1;
10
    if (image_alpha < 0)
11
        image_alpha = 0;
12
    if (image_alpha == 0)
13
        instance_destroy();
14
}