Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_fall_feather_final_Step_2

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!instance_exists(obj_heart_battle_fighting_parent))
4
{
5
    instance_destroy()
6
    return;
7
}
8
if (state == 2 && obj_heart_battle_fighting_parent.vulnerable == true && (!(place_meeting(xprevious, yprevious, obj_heart_hitbox_parent))))
9
{
10
    var hsc_x_temp = x
11
    var hsc_y_temp = y
12
    var hsc_max = 4
13
    for (i = 0; i < hsc_max; i++)
14
    {
15
        x -= lengthdir_x((attack_speed / hsc_max), image_angle)
16
        y -= lengthdir_y((attack_speed / hsc_max), image_angle)
17
        with (obj_heart_hitbox_parent)
18
            event_user(0)
19
    }
20
    x = hsc_x_temp
21
    y = hsc_y_temp
22
}