Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_decibat_stalagmite_Step_0

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