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_undyne)) |
9 |
{ |
10 |
with (obj_face_undyne) |
11 |
instance_destroy(); |
12 |
} |
13 |
if (instance_exists(obj_face_papyrus)) |
14 |
{ |
15 |
with (obj_face_papyrus) |
16 |
instance_destroy(); |
17 |
} |
18 |
if (instance_exists(obj_face_alphys)) |
19 |
{ |
20 |
with (obj_face_alphys) |
21 |
instance_destroy(); |
22 |
} |
23 |
if (instance_exists(obj_face_asgore)) |
24 |
{ |
25 |
with (obj_face_asgore) |
26 |
instance_destroy(); |
27 |
} |
28 |
if (global.faceemotion == 99) |
29 |
{ |
30 |
instance_create(x, y, obj_face_torglasses); |
31 |
global.faceemotion = 0; |
32 |
} |
33 |
if (global.faceemotion == 0 && sprite_index != spr_face_torielhappytalk) |
34 |
sprite_index = spr_face_torielhappytalk; |
35 |
if (global.faceemotion == 1 && sprite_index != spr_face_torieltalkside) |
36 |
sprite_index = spr_face_torieltalkside; |
37 |
if (global.faceemotion == 2 && sprite_index != spr_face_torieltalk) |
38 |
sprite_index = spr_face_torieltalk; |
39 |
if (global.faceemotion == 3 && sprite_index != spr_face_torielwhat) |
40 |
sprite_index = spr_face_torielwhat; |
41 |
if (global.faceemotion == 4 && sprite_index != spr_face_torielwhatside) |
42 |
sprite_index = spr_face_torielwhatside; |
43 |
if (global.faceemotion == 6 && sprite_index != spr_face_torielcold) |
44 |
sprite_index = spr_face_torielcold; |
45 |
if (global.faceemotion == 7 && sprite_index != spr_face_torielmad) |
46 |
sprite_index = spr_face_torielmad; |
47 |
if (global.faceemotion == 8 && sprite_index != spr_face_torielembarrassed) |
48 |
sprite_index = spr_face_torielembarrassed; |
49 |
if (global.faceemotion == 9 && sprite_index != spr_face_toriel_goawayasgore) |
50 |
sprite_index = spr_face_toriel_goawayasgore; |