Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_chase_attack_Step_2

(view raw script w/o annotations or w/e)
1
if (state == "move")
2
{
3
    if (move_miss_lock == true)
4
    {
5
        if (sign(move_speed) == 0 || sign(move_speed) != move_sign_store)
6
            move_miss_lock = false;
7
    }
8
    if (abs(x - obj_heart_battle_fighting_parent.x) <= 8 && move_miss_lock == false)
9
    {
10
        if (move_miss_count > 0 && move_speed != 0 && abs(obj_heart_battle_fighting_parent.move_hsp_count) > 0 && sign(obj_heart_battle_fighting_parent.last_hsp) != sign(move_speed))
11
        {
12
            if (critical == false)
13
                move_miss_count -= 1;
14
            move_miss_lock = true;
15
            move_sign_store = sign(move_speed);
16
        }
17
        else if (critical == false)
18
        {
19
            state = "animate";
20
            sprite_index = sprite_fly_begin[side];
21
            image_speed = image_speed_fly_begin;
22
            image_index = 0;
23
        }
24
    }
25
}