1 |
if (active == 1) |
2 |
{ |
3 |
if (on < 3) |
4 |
draw_sprite_ext(sprite_index, image_index, 120, 56, 2, 2, 0, c_white, image_alpha); |
5 |
if (on == 1 && image_alpha < 1) |
6 |
image_alpha += 0.06; |
7 |
if (on == 0 && image_alpha > 0) |
8 |
{ |
9 |
if (image_index < 4) |
10 |
{ |
11 |
image_alpha -= 0.06; |
12 |
} |
13 |
else |
14 |
{ |
15 |
on = 2; |
16 |
memtimer = 250; |
17 |
wht = 0; |
18 |
} |
19 |
} |
20 |
memtimer += 1; |
21 |
if (memtimer == 120) |
22 |
on = 0; |
23 |
if (memtimer == 138) |
24 |
image_index += 1; |
25 |
if (memtimer == 141) |
26 |
{ |
27 |
on = 1; |
28 |
memtimer = 0; |
29 |
} |
30 |
if (on == 2) |
31 |
{ |
32 |
wht += 0.02; |
33 |
draw_set_alpha(wht); |
34 |
draw_set_color(c_white); |
35 |
ossafe_fill_rectangle(-10, -10, 999, 999); |
36 |
draw_set_alpha(1); |
37 |
if (wht > 1.18) |
38 |
{ |
39 |
on = 3; |
40 |
global.battlegroup = 256; |
41 |
global.flag[501 conversation_asriel_fight] = 3; |
42 |
do_room_goto = true; |
43 |
} |
44 |
} |
45 |
if (on == 3) |
46 |
{ |
47 |
wht -= 0.05; |
48 |
draw_set_alpha(wht); |
49 |
draw_set_color(c_white); |
50 |
ossafe_fill_rectangle(-10, -10, 999, 999); |
51 |
draw_set_alpha(1); |
52 |
if (wht < 0) |
53 |
on = 4; |
54 |
} |
55 |
xtimer += 1; |
56 |
qual = 0; |
57 |
if (xtimer == 2263) |
58 |
qual = 1; |
59 |
if (caster_is_playing(global.batmusic) == 0 && caster_is_playing(global.batmusic2) == 0) |
60 |
qual = 1; |
61 |
if (qual == 1) |
62 |
{ |
63 |
xtimer = 2266; |
64 |
caster_loop(global.batmusic2, thisvol, 0.85); |
65 |
} |
66 |
} |