1 |
if (global.darkzone == 1) |
2 |
{ |
3 |
if (facealpha < 1) |
4 |
facealpha += 0.2; |
5 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, facealpha); |
6 |
draw_set_alpha(facealpha); |
7 |
if (type == 0 || type == 3) |
8 |
{ |
9 |
scr_84_set_draw_font("main"); |
10 |
draw_set_color(mycolor); |
11 |
draw_text(x + 70, y + 10, string_hash_to_newline(mystring)); |
12 |
} |
13 |
if (type == 1 && active == 1 && getrid == 0) |
14 |
{ |
15 |
scr_84_set_draw_font("main"); |
16 |
draw_set_color(mycolor); |
17 |
draw_text(x + 70, y + 15, string_hash_to_newline(mystring)); |
18 |
finished = 1; |
19 |
} |
20 |
if (type == 2 || type == 4) |
21 |
{ |
22 |
if (active == 1) |
23 |
{ |
24 |
scr_84_set_draw_font("main"); |
25 |
draw_set_color(mycolor); |
26 |
if (finished == 0) |
27 |
{ |
28 |
partstring += string_char_at(mystring, part); |
29 |
part += 1; |
30 |
if (part >= (string_length(mystring) + 1)) |
31 |
finished = 1; |
32 |
} |
33 |
draw_text(x + 70 + random(1), y + 15 + random(1), string_hash_to_newline(partstring)); |
34 |
} |
35 |
} |
36 |
if (i_ex(writergod)) |
37 |
{ |
38 |
if (finished == 1 && getrid == 0) |
39 |
finished = 2; |
40 |
} |
41 |
else |
42 |
{ |
43 |
instance_destroy(); |
44 |
} |
45 |
if (getrid == 1) |
46 |
{ |
47 |
direction = -nowdir; |
48 |
speed += 2; |
49 |
if (type == 3 || type == 4) |
50 |
instance_destroy(); |
51 |
} |
52 |
draw_set_alpha(1); |
53 |
} |