Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_g_hand_right_Step_2

related scripts: Create_0Destroy_0Step_0Step_2

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