Undertale script viewer

← back to main script listing

gml_Object_obj_face_alphys_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (instance_exists(obj_face_sans))
3
{
4
    with (obj_face_sans)
5
        instance_destroy();
6
}
7
if (instance_exists(obj_face_undyne))
8
{
9
    with (obj_face_undyne)
10
        instance_destroy();
11
}
12
if (instance_exists(obj_face_papyrus))
13
{
14
    with (obj_face_papyrus)
15
        instance_destroy();
16
}
17
if (instance_exists(obj_face_asgore))
18
{
19
    with (obj_face_asgore)
20
        instance_destroy();
21
}
22
if (instance_exists(obj_face_torieltalk))
23
{
24
    with (obj_face_torieltalk)
25
        instance_destroy();
26
}
27
if (instance_exists(obj_face_torielblink))
28
{
29
    with (obj_face_torielblink)
30
        instance_destroy();
31
}
32
if (instance_exists(obj_torbody))
33
{
34
    with (obj_torbody)
35
        instance_destroy();
36
}
37
image_speed = 0.25;
38
u[0] = 2149;
39
u[1] = 2152;
40
u[2] = 2153;
41
u[3] = 2154;
42
u[4] = 2155;
43
u[5] = 2156;
44
u[6] = 2157;
45
u[7] = 2158;
46
u[8] = 2159;
47
u[9] = 2160;
48
u[10] = 2161;
49
u[11] = 2162;
50
u[12] = 2163;
51
u[13] = 2164;
52
u[14] = 2165;
53
u[15] = 2166;
54
u[16] = 2167;
55
u[17] = 2168;
56
u[18] = 2169;
57
u[19] = 2170;
58
u[20] = 2171;
59
u[21] = 2172;
60
u[22] = 2173;
61
u[23] = 2174;
62
u[24] = 2175;
63
u[25] = 2176;
64
sprite_index = u[global.faceemotion];
65
if (global.flag[430 alphys_expression] == 1)
66
    sprite_index = u[global.faceemotion + 10];
67
if (global.flag[430 alphys_expression] == 2)
68
    sprite_index = u[global.faceemotion + 15];
69
if (global.flag[430 alphys_expression] == 4)
70
{
71
    image_index = global.faceemotion;
72
    sprite_index = spr_alphysface_new;
73
}