Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_decibat_head_Step_2

(view raw script w/o annotations or w/e)
1
if ((!instance_exists(obj_decibat_body)) && (!instance_exists(obj_decibat_body_intro)))
2
{
3
    instance_destroy()
4
    return;
5
}
6
if instance_exists(obj_decibat_body)
7
{
8
    y = obj_decibat_body.y
9
    image_angle = obj_decibat_body.image_angle
10
}
11
else if instance_exists(obj_decibat_body_intro)
12
{
13
    y = obj_decibat_body_intro.y
14
    image_alpha = obj_decibat_body_intro.image_alpha
15
    image_angle = obj_decibat_body_intro.image_angle
16
}
17
if instance_exists(obj_battle_fade_in_screen)
18
    depth = obj_battle_fade_in_screen.depth - 2
19
else
20
    depth = 1