Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_g_hand_right_Step_2

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