| 1 |
event_inherited(); |
| 2 |
image_speed = 0; |
| 3 |
image_index = 0; |
| 4 |
alarm[0] = 20 + round(random(30)); |
| 5 |
if (instance_exists(obj_face_sans)) |
| 6 |
{ |
| 7 |
with (obj_face_sans) |
| 8 |
instance_destroy(); |
| 9 |
} |
| 10 |
if (instance_exists(obj_face_undyne)) |
| 11 |
{ |
| 12 |
with (obj_face_undyne) |
| 13 |
instance_destroy(); |
| 14 |
} |
| 15 |
if (instance_exists(obj_face_papyrus)) |
| 16 |
{ |
| 17 |
with (obj_face_papyrus) |
| 18 |
instance_destroy(); |
| 19 |
} |
| 20 |
if (instance_exists(obj_face_alphys)) |
| 21 |
{ |
| 22 |
with (obj_face_alphys) |
| 23 |
instance_destroy(); |
| 24 |
} |
| 25 |
if (instance_exists(obj_face_asgore)) |
| 26 |
{ |
| 27 |
with (obj_face_asgore) |
| 28 |
instance_destroy(); |
| 29 |
} |
| 30 |
if (global.faceemotion == 99) |
| 31 |
{ |
| 32 |
instance_create(x, y, obj_face_torglasses); |
| 33 |
global.faceemotion = 0; |
| 34 |
} |
| 35 |
if (global.faceemotion == 0 && sprite_index != spr_face_torielhappyblink) |
| 36 |
sprite_index = spr_face_torielhappyblink; |
| 37 |
if (global.faceemotion == 1 && sprite_index != spr_face_torielblinkside) |
| 38 |
sprite_index = spr_face_torielblinkside; |
| 39 |
if (global.faceemotion == 2 && sprite_index != spr_face_torielblink) |
| 40 |
sprite_index = spr_face_torielblink; |
| 41 |
if (global.faceemotion == 3 && sprite_index != spr_face_torielwhat) |
| 42 |
sprite_index = spr_face_torielwhat; |
| 43 |
if (global.faceemotion == 4 && sprite_index != spr_face_torielwhatside) |
| 44 |
sprite_index = spr_face_torielwhatside; |
| 45 |
if (global.faceemotion == 6 && sprite_index != spr_face_torielcold) |
| 46 |
sprite_index = spr_face_torielcold; |
| 47 |
if (global.faceemotion == 7 && sprite_index != spr_face_torielmad) |
| 48 |
sprite_index = spr_face_torielmad; |
| 49 |
if (global.faceemotion == 8 && sprite_index != spr_face_torielembarrassed) |
| 50 |
sprite_index = spr_face_torielembarrassed; |
| 51 |
if (global.faceemotion == 9 && sprite_index != spr_face_toriel_goawayasgore) |
| 52 |
sprite_index = spr_face_toriel_goawayasgore; |