Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_shield_Step_2

(view raw script w/o annotations or w/e)
1
var battle_box = 3154
2
if (!instance_exists(obj_heart_battle_fighting_parent))
3
{
4
    instance_destroy()
5
    return;
6
}
7
if instance_exists(obj_heart_battle_fighting_parent)
8
{
9
    x = obj_heart_battle_fighting_parent.x + (lengthdir_x(shield_offset, obj_heart_battle_fighting_parent.soul_direction))
10
    y = obj_heart_battle_fighting_parent.y + (lengthdir_y(shield_offset, obj_heart_battle_fighting_parent.soul_direction))
11
}
12
direction = obj_heart_battle_fighting_axis.soul_direction
13
image_angle = direction