Undertale script viewer

← back to main script listing

gml_Object_obj_face_undyne_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
image_speed = 0.25;
3
if (instance_exists(obj_face_sans))
4
{
5
    with (obj_face_sans)
6
        instance_destroy();
7
}
8
if (instance_exists(obj_face_papyrus))
9
{
10
    with (obj_face_papyrus)
11
        instance_destroy();
12
}
13
if (instance_exists(obj_face_alphys))
14
{
15
    with (obj_face_alphys)
16
        instance_destroy();
17
}
18
if (instance_exists(obj_face_asgore))
19
{
20
    with (obj_face_asgore)
21
        instance_destroy();
22
}
23
if (instance_exists(obj_face_torieltalk))
24
{
25
    with (obj_face_torieltalk)
26
        instance_destroy();
27
}
28
if (instance_exists(obj_face_torielblink))
29
{
30
    with (obj_face_torielblink)
31
        instance_destroy();
32
}
33
if (instance_exists(obj_torbody))
34
{
35
    with (obj_torbody)
36
        instance_destroy();
37
}
38
u[0] = 2128;
39
u[1] = 2129;
40
u[2] = 2132;
41
u[3] = 2134;
42
u[4] = 2135;
43
u[5] = 2136;
44
u[6] = 2137;
45
u[7] = 2139;
46
u[8] = 2142;
47
u[9] = 2143;
48
sprite_index = u[global.faceemotion];