Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_rorrim_mirror_shard_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_heart_battle_fighting_parent))
2
{
3
    x += hsp;
4
    vsp += grav;
5
    if (vsp > terminal_velocity)
6
        vsp = terminal_velocity;
7
    y += vsp;
8
    if (place_meeting(x, y, obj_dialogue_box_battle_transformation_any))
9
        can_vanish = true;
10
    if (!place_meeting(x, y, obj_dialogue_box_battle_transformation_any) && can_vanish == true)
11
    {
12
        if (image_alpha > 0)
13
        {
14
            image_alpha -= 0.1;
15
            if (image_alpha < 0)
16
                image_alpha = 0;
17
            if (image_alpha == 0)
18
                instance_destroy();
19
        }
20
    }
21
}