1 |
timer += 1; |
2 |
if (timer == 60) |
3 |
{ |
4 |
caster_play(dooropen, 0.6, 1); |
5 |
image_index = 1; |
6 |
tor = instance_create(34, 86, obj_npc_marker); |
7 |
tor.sprite_index = spr_toriel_r_holdthing; |
8 |
tor.image_speed = 0; |
9 |
tor.visible = true; |
10 |
tor.depth = 1000; |
11 |
bl = merge_color(c_gray, c_navy, 0.5); |
12 |
bl2 = merge_color(bl, c_white, 0.4); |
13 |
tor.image_blend = bl2; |
14 |
pie = instance_create(tor.x + 18, tor.y + 24, obj_npc_marker); |
15 |
pie.sprite_index = spr_pieslice; |
16 |
pie.image_blend = bl2; |
17 |
pie.visible = true; |
18 |
pie.depth = 999; |
19 |
} |
20 |
if (timer == 150) |
21 |
{ |
22 |
tor.image_speed = 0.1; |
23 |
tor.hspeed = 1; |
24 |
pie.hspeed = 1; |
25 |
} |
26 |
if (timer == 240) |
27 |
{ |
28 |
tor.image_index = 0; |
29 |
tor.image_speed = 0; |
30 |
tor.hspeed = 0; |
31 |
pie.hspeed = 0; |
32 |
} |
33 |
if (timer == 290) |
34 |
{ |
35 |
tor.sprite_index = spr_toriel_r_placething; |
36 |
pie.x = tor.x + 28; |
37 |
pie.y = tor.y + 40; |
38 |
} |
39 |
if (timer == 330) |
40 |
tor.sprite_index = spr_toriel_r; |
41 |
if (timer == 390) |
42 |
{ |
43 |
tor.hspeed = -1; |
44 |
tor.image_speed = 0.1; |
45 |
} |
46 |
if (timer == 410) |
47 |
{ |
48 |
tor.hspeed = 0; |
49 |
tor.image_speed = 0; |
50 |
tor.image_index = 0; |
51 |
} |
52 |
if (timer == 460) |
53 |
{ |
54 |
tor.hspeed = -1; |
55 |
tor.image_speed = 0.1; |
56 |
tor.sprite_index = spr_toriel_l; |
57 |
} |
58 |
if (timer == 530) |
59 |
{ |
60 |
tor.hspeed = 0; |
61 |
tor.image_speed = 0; |
62 |
tor.image_index = 0; |
63 |
} |
64 |
if (timer == 560) |
65 |
tor.sprite_index = spr_toriel_r; |
66 |
if (timer == 640 && death == 0) |
67 |
{ |
68 |
caster_play(doorclose, 0.8, 1); |
69 |
caster_stop(crickets); |
70 |
depth = -9000; |
71 |
} |
72 |
if (timer == 760 && death == 0) |
73 |
room_goto(room_end_theend Pacifist credits - The End [Dogchecked]); |
74 |
if (timer == 640 && death == 1) |
75 |
{ |
76 |
tor.visible = false; |
77 |
caster_play(doorclose, 0.8, 1); |
78 |
caster_stop(crickets); |
79 |
image_index = 0; |
80 |
} |
81 |
if (timer == 760 && death == 1) |
82 |
{ |
83 |
charaface = scr_markerscr_markerthismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (228, 101, spr_charahead); |
84 |
eyeflash = scr_markerscr_markerthismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (234, 109, spr_asgore_eyeflash_serious); |
85 |
eyeflash.depth = -2; |
86 |
eyeflash.image_speed = 0.25; |
87 |
caster_play(mus_sfx_eyeflash, 1, 0.5); |
88 |
} |
89 |
if (death == 1 && timer >= 760) |
90 |
{ |
91 |
if (instance_exists(eyeflash)) |
92 |
{ |
93 |
if (eyeflash.image_index >= 5) |
94 |
{ |
95 |
with (eyeflash) |
96 |
instance_destroy(); |
97 |
} |
98 |
} |
99 |
} |
100 |
if (death == 1 && timer == 850) |
101 |
{ |
102 |
depth = -9999; |
103 |
caster_play(mus_f_laugh, 1, 0.75); |
104 |
} |
105 |
if (death == 1 && timer == 1150) |
106 |
{ |
107 |
caster_free(all); |
108 |
room_goto(room_end_theend Pacifist credits - The End [Dogchecked]); |
109 |
} |