Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_g_hand_left_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 - 26;
12
    else
13
        x = obj_martlet_g_body.x - 32;
14
    y = obj_martlet_g_body.hand_left_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
sprite_index = hand_left_sprite;
25
image_speed = 0;
26
image_index = 0;
27
with (obj_martlet_g_hand_left_shadow)
28
    event_user(0);