1 |
if (type == 0 || type == 3) |
2 |
{ |
3 |
image_speed = 0; |
4 |
image_alpha = 1; |
5 |
image_xscale = 2; |
6 |
image_yscale = 2; |
7 |
if (type == 0) |
8 |
{ |
9 |
if (set == 0) |
10 |
sprite_index = spr_tv_floweyface_seta; |
11 |
if (set == 1) |
12 |
sprite_index = spr_tv_floweyface_setb; |
13 |
if (set == 2) |
14 |
sprite_index = spr_tv_floweyface_setc; |
15 |
image_index = global.faceemotion; |
16 |
} |
17 |
if (type == 3) |
18 |
{ |
19 |
image_speed = 0.5; |
20 |
sprite_index = spr_tv_floweyface_everyone; |
21 |
} |
22 |
if (moved != 2) |
23 |
{ |
24 |
if (caster_is_playing(ns)) |
25 |
caster_stop(ns); |
26 |
} |
27 |
if (moved == 2) |
28 |
{ |
29 |
image_xscale = 1.98 + random(0.02); |
30 |
image_yscale = 1.98 + random(0.02); |
31 |
x = xx + random(1); |
32 |
y = yy + random(1); |
33 |
helltimer += 1; |
34 |
if (helltimer < 50) |
35 |
{ |
36 |
if (caster_is_playing(ns)) |
37 |
caster_stop(ns); |
38 |
} |
39 |
if (helltimer == 50) |
40 |
{ |
41 |
if (!caster_is_playing(ns)) |
42 |
caster_loop(ns, 1, 1); |
43 |
} |
44 |
if (helltimer >= 50) |
45 |
{ |
46 |
sprite_index = spr_noise; |
47 |
image_index = random(99); |
48 |
image_xscale = 0.86; |
49 |
image_yscale = 0.58; |
50 |
} |
51 |
if (helltimer >= 56) |
52 |
{ |
53 |
helltimer = -100 - floor(random(320)); |
54 |
if (caster_is_playing(ns)) |
55 |
caster_stop(ns); |
56 |
} |
57 |
} |
58 |
} |
59 |
if (type == 1) |
60 |
{ |
61 |
image_alpha = 1; |
62 |
sprite_index = spr_noise; |
63 |
image_xscale = 0.86; |
64 |
image_yscale = 0.58; |
65 |
image_speed = 1; |
66 |
if (!caster_is_playing(ns)) |
67 |
caster_loop(ns, 1, 1); |
68 |
} |
69 |
if (type == 2) |
70 |
{ |
71 |
if (caster_is_playing(ns)) |
72 |
caster_stop(ns); |
73 |
image_alpha = 0; |
74 |
} |