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
    exit;
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
var text_parent;
17
if (instance_exists(obj_quote_defeat_parent))
18
    text_parent = 2961;
19
else
20
    text_parent = 2622;
21
if (instance_exists(text_parent) && instance_exists(obj_quote_bubble_battle))
22
{
23
    if (sprite_index != text_parent.portrait_hand[text_parent.message_current])
24
        sprite_index = text_parent.portrait_hand[text_parent.message_current];
25
}
26
else
27
{
28
    sprite_index = hand_right_sprite;
29
}
30
image_speed = 0;
31
image_index = 0;
32
with (obj_martlet_hand_right_shadow)
33
    event_user(0);