Undertale script viewer

← back to main script listing

gml_Object_obj_face_undyne_Step_0

(view raw script w/o annotations or w/e)
1
sprite_index = u[global.faceemotion];
2
if (global.faceemotion == 1 && global.flag[390 undyne_expression] == 2)
3
    sprite_index = spr_face_undyne1_3;
4
if (global.faceemotion == 2 && global.flag[20 animation_index] == 9)
5
    sprite_index = spr_face_undyne2_2;
6
if (global.faceemotion == 9 && global.flag[390 undyne_expression] == 1)
7
    sprite_index = spr_face_undyne9_2;
8
if (global.faceemotion == 9 && global.flag[390 undyne_expression] == 2)
9
    sprite_index = spr_face_undyne9_3;
10
if (instance_exists(OBJ_WRITER))
11
{
12
    if (OBJ_WRITER.halt != 0)
13
    {
14
        image_speed = 0;
15
        image_index = 0;
16
    }
17
    else
18
    {
19
        image_speed = 0.25;
20
    }
21
}
22
if (global.facechoice == 0)
23
    instance_destroy();