Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_hand_right_Step_2

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_martlet_body))
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (obj_martlet_body.animating == true)
7
{
8
    x = obj_martlet_body.x + 18
9
    y = obj_martlet_body.hand_right_displacement_y
10
}
11
else
12
{
13
    x = starting_point_x
14
    y = starting_point_y
15
}
16
if instance_exists(obj_quote_defeat_parent)
17
    var text_parent = obj_quote_defeat_parent
18
else
19
    text_parent = obj_quote_battle_martlet_parent
20
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle))
21
{
22
    if (sprite_index != text_parent.portrait_hand[text_parent.message_current])
23
        sprite_index = text_parent.portrait_hand[text_parent.message_current]
24
}
25
else
26
    sprite_index = hand_right_sprite
27
image_speed = 0
28
image_index = 0
29
with (obj_martlet_hand_right_shadow)
30
    event_user(0)