1 |
event_inherited(); |
2 |
image_speed = 0.25; |
3 |
if (instance_exists(obj_face_undyne)) |
4 |
{ |
5 |
with (obj_face_undyne) |
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 |
if (instance_exists(obj_face_mettaton)) |
39 |
{ |
40 |
with (obj_face_mettaton) |
41 |
instance_destroy(); |
42 |
} |
43 |
if (global.faceemotion == 0 && sprite_index != spr_face_sans) |
44 |
sprite_index = spr_face_sans; |
45 |
if (global.faceemotion == 1 && sprite_index != spr_face_sanschuckle) |
46 |
sprite_index = spr_face_sanschuckle; |
47 |
if (global.faceemotion == 2 && sprite_index != spr_face_sanswink) |
48 |
sprite_index = spr_face_sanswink; |
49 |
if (global.faceemotion == 3 && sprite_index != spr_face_sansblink) |
50 |
sprite_index = spr_face_sansblink; |
51 |
if (global.faceemotion == 4 && sprite_index != spr_face_sansnoeyes) |
52 |
sprite_index = spr_face_sansnoeyes; |