1 |
if (active == 1) |
2 |
{ |
3 |
if (con == 50) |
4 |
{ |
5 |
image_index = 0; |
6 |
image_speed = 0.1; |
7 |
con = 51; |
8 |
alarm[4] = 70; |
9 |
} |
10 |
if (con == 52) |
11 |
{ |
12 |
image_speed = 0; |
13 |
image_index = 7; |
14 |
con = 53; |
15 |
alarm[4] = 60; |
16 |
} |
17 |
if (con == 53) |
18 |
{ |
19 |
anim = instance_create(x + 12, y + 48, obj_animation); |
20 |
anim.sprite_index = spr_kris_shine; |
21 |
anim.image_speed = 0.125; |
22 |
con = 54; |
23 |
alarm[4] = 60; |
24 |
} |
25 |
if (con == 55) |
26 |
{ |
27 |
blazetimer = 0; |
28 |
image_index = 8; |
29 |
image_speed = 0.5; |
30 |
alarm[4] = 10; |
31 |
con = 56; |
32 |
} |
33 |
if (con == 57) |
34 |
{ |
35 |
image_index = 13; |
36 |
image_speed = 0; |
37 |
con = 58; |
38 |
alarm[4] = 1; |
39 |
} |
40 |
if (con == 59) |
41 |
{ |
42 |
con = 60; |
43 |
alarm[4] = 10; |
44 |
} |
45 |
if (con == 60 || con == 56) |
46 |
{ |
47 |
snd_play(snd_fountain_target); |
48 |
blazetimer++; |
49 |
anim = instance_create((x - 40) + (blazetimer * 6), y + 10 + random(20), obj_animation); |
50 |
anim.sprite_index = spr_kris_make_fountain_flash; |
51 |
anim.image_speed = 0.5; |
52 |
} |
53 |
if (con == 61) |
54 |
{ |
55 |
snd_play(snd_fountain_make); |
56 |
ballcon = 1; |
57 |
image_index = 14; |
58 |
image_speed = 0.5; |
59 |
con = 62; |
60 |
alarm[4] = 6; |
61 |
} |
62 |
if (con == 63) |
63 |
{ |
64 |
image_speed = 0; |
65 |
image_index += 0.5; |
66 |
if (image_index >= 19) |
67 |
image_index -= 2; |
68 |
} |
69 |
if (con == 64) |
70 |
{ |
71 |
sprite_index = spr_kris_make_fountain_jump; |
72 |
image_speed = 0; |
73 |
image_index = 0; |
74 |
con = 65; |
75 |
alarm[4] = 90; |
76 |
} |
77 |
if (con == 66) |
78 |
{ |
79 |
depth = 8; |
80 |
image_index = 1; |
81 |
vspeed = -8; |
82 |
hspeed = -1; |
83 |
gravity = 1; |
84 |
con = 67; |
85 |
} |
86 |
if (con == 67) |
87 |
{ |
88 |
ballcheck = collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_fountainball, false, true); |
89 |
if (ballcheck != -4) |
90 |
{ |
91 |
with (ballcheck) |
92 |
{ |
93 |
if (back == 0) |
94 |
{ |
95 |
hspeed += (-4 + random(8)); |
96 |
vspeed -= random(3); |
97 |
backball.hspeed = hspeed; |
98 |
backball.vspeed = vspeed; |
99 |
} |
100 |
} |
101 |
} |
102 |
if (y >= 120) |
103 |
{ |
104 |
image_index = 2; |
105 |
vspeed = 0; |
106 |
hspeed = 0; |
107 |
gravity = 0; |
108 |
con = 68; |
109 |
alarm[4] = 60; |
110 |
} |
111 |
} |
112 |
if (con == 69) |
113 |
{ |
114 |
if (image_index <= 4) |
115 |
image_index += 0.25; |
116 |
} |
117 |
if (scr_debug()) |
118 |
{ |
119 |
} |
120 |
} |