1 |
x += xspeed; |
2 |
if (xspeed < 0) |
3 |
{ |
4 |
if (obj_queen_wineglass.fill > 36 && rise > 1) |
5 |
rise--; |
6 |
} |
7 |
else if (obj_queen_wineglass.fill > 36 && rise > 3) |
8 |
{ |
9 |
rise--; |
10 |
} |
11 |
var wineheight = obj_queen_wineglass.starty - obj_queen_wineglass.fill; |
12 |
siner++; |
13 |
y = wineheight + rise + (sin(siner / (abs(xspeed) * 4)) * 2); |
14 |
if (x > (obj_queen_wineglass.xstart + 75)) |
15 |
x -= 150; |
16 |
else if (x < (obj_queen_wineglass.xstart - 75)) |
17 |
x += 150; |
18 |
var height_fix = 11 - (obj_queen_wineglass.fill / 30); |
19 |
visible = true; |
20 |
var xx = 0; |
21 |
var xx0 = 0; |
22 |
if (instance_exists(obj_queen_wineglass)) |
23 |
{ |
24 |
if (obj_queen_wineglass.image_angle < -4) |
25 |
{ |
26 |
if (obj_queen_wineglass.fill > 30) |
27 |
{ |
28 |
xx = obj_queen_wineglass.image_angle * 0.9; |
29 |
xx0 = obj_queen_wineglass.image_angle * 1.5; |
30 |
} |
31 |
if (obj_queen_wineglass.fill > 35) |
32 |
{ |
33 |
xx = obj_queen_wineglass.image_angle * 0.4; |
34 |
xx0 = obj_queen_wineglass.image_angle * 0.8; |
35 |
} |
36 |
if (obj_queen_wineglass.fill > 40) |
37 |
{ |
38 |
xx = obj_queen_wineglass.image_angle * 0.94; |
39 |
xx0 = obj_queen_wineglass.image_angle * 1.1; |
40 |
} |
41 |
if (obj_queen_wineglass.fill > 45) |
42 |
{ |
43 |
xx = obj_queen_wineglass.image_angle * 0.4; |
44 |
xx0 = obj_queen_wineglass.image_angle * 0.8; |
45 |
} |
46 |
if (obj_queen_wineglass.fill > 51) |
47 |
{ |
48 |
xx = obj_queen_wineglass.image_angle * -0.4; |
49 |
xx0 = obj_queen_wineglass.image_angle * -0.2; |
50 |
} |
51 |
if (obj_queen_wineglass.fill > 63) |
52 |
{ |
53 |
xx = obj_queen_wineglass.image_angle * -0.55; |
54 |
xx0 = obj_queen_wineglass.image_angle * -0.21; |
55 |
} |
56 |
if (obj_queen_wineglass.fill > 70) |
57 |
{ |
58 |
xx = obj_queen_wineglass.image_angle * -0.5; |
59 |
xx0 = obj_queen_wineglass.image_angle * -0.2; |
60 |
} |
61 |
scr_drawinboxscr_drawinboxfunction scr_drawinbox(arg0, arg1, arg2, arg3)
{
var _boxleft = arg0 - (arg2 / 2);
var _boxtop = arg1 - (arg3 / 2);
var _xx = (_boxleft - (x - sprite_xoffset)) + 1;
var _yy = (_boxtop - (y - sprite_yoffset)) + 1;
draw_sprite_part_ext(sprite_index, image_index, _xx, _yy, arg2, arg3, _boxleft + 1, _boxtop + 1, sign(image_xscale), sign(image_yscale), image_blend, image_alpha);
} ((obj_queen_wineglass.xstart + xx) - xx0, wineheight - height_fix, 142 + xx, 20); |
62 |
} |
63 |
else if (obj_queen_wineglass.image_angle > 4) |
64 |
{ |
65 |
if (obj_queen_wineglass.fill > 30) |
66 |
{ |
67 |
xx = obj_queen_wineglass.image_angle * -0.6; |
68 |
xx0 = obj_queen_wineglass.image_angle * 1; |
69 |
} |
70 |
if (obj_queen_wineglass.fill > 30) |
71 |
{ |
72 |
xx = obj_queen_wineglass.image_angle * -0.6; |
73 |
xx0 = obj_queen_wineglass.image_angle * 1; |
74 |
} |
75 |
if (obj_queen_bulletcontroller.type == 2.1) |
76 |
{ |
77 |
if (obj_queen_wineglass.fill > 40) |
78 |
{ |
79 |
xx = obj_queen_wineglass.image_angle * -0.1; |
80 |
xx0 = obj_queen_wineglass.image_angle * 0.1; |
81 |
} |
82 |
if (obj_queen_wineglass.fill > 42) |
83 |
{ |
84 |
xx = obj_queen_wineglass.image_angle * 0; |
85 |
xx0 = obj_queen_wineglass.image_angle * 0; |
86 |
} |
87 |
if (obj_queen_wineglass.fill > 49) |
88 |
{ |
89 |
xx = obj_queen_wineglass.image_angle * 0; |
90 |
xx0 = obj_queen_wineglass.image_angle * 0; |
91 |
} |
92 |
} |
93 |
else |
94 |
{ |
95 |
if (obj_queen_wineglass.fill > 40) |
96 |
{ |
97 |
xx = obj_queen_wineglass.image_angle * -0.5; |
98 |
xx0 = obj_queen_wineglass.image_angle * 0.9; |
99 |
} |
100 |
if (obj_queen_wineglass.fill > 42) |
101 |
{ |
102 |
xx = obj_queen_wineglass.image_angle * -0.6; |
103 |
xx0 = obj_queen_wineglass.image_angle * 1; |
104 |
} |
105 |
if (obj_queen_wineglass.fill > 49) |
106 |
{ |
107 |
xx = obj_queen_wineglass.image_angle * 0.4; |
108 |
xx0 = obj_queen_wineglass.image_angle * -0.2; |
109 |
} |
110 |
} |
111 |
if (obj_queen_wineglass.fill > 53) |
112 |
{ |
113 |
xx = obj_queen_wineglass.image_angle * 0.6; |
114 |
xx0 = obj_queen_wineglass.image_angle * -0.5; |
115 |
} |
116 |
if (obj_queen_wineglass.fill > 63) |
117 |
{ |
118 |
xx = obj_queen_wineglass.image_angle * 0.6; |
119 |
xx0 = obj_queen_wineglass.image_angle * -0.2; |
120 |
} |
121 |
if (obj_queen_wineglass.fill > 70) |
122 |
{ |
123 |
xx = obj_queen_wineglass.image_angle * 0.6; |
124 |
xx0 = obj_queen_wineglass.image_angle * 0; |
125 |
} |
126 |
if (obj_queen_wineglass.fill > 75) |
127 |
{ |
128 |
xx = obj_queen_wineglass.image_angle * 0.6; |
129 |
xx0 = obj_queen_wineglass.image_angle * 0.1; |
130 |
} |
131 |
if (obj_queen_wineglass.fill > 77) |
132 |
{ |
133 |
xx = obj_queen_wineglass.image_angle * 0.6; |
134 |
xx0 = obj_queen_wineglass.image_angle * 0; |
135 |
} |
136 |
if (obj_queen_wineglass.fill > 80) |
137 |
{ |
138 |
xx = obj_queen_wineglass.image_angle * 0.57; |
139 |
xx0 = obj_queen_wineglass.image_angle * -0.12; |
140 |
} |
141 |
if (obj_queen_wineglass.fill > 84) |
142 |
{ |
143 |
xx = obj_queen_wineglass.image_angle * 0.6; |
144 |
xx0 = obj_queen_wineglass.image_angle * 0; |
145 |
} |
146 |
scr_drawinboxscr_drawinboxfunction scr_drawinbox(arg0, arg1, arg2, arg3)
{
var _boxleft = arg0 - (arg2 / 2);
var _boxtop = arg1 - (arg3 / 2);
var _xx = (_boxleft - (x - sprite_xoffset)) + 1;
var _yy = (_boxtop - (y - sprite_yoffset)) + 1;
draw_sprite_part_ext(sprite_index, image_index, _xx, _yy, arg2, arg3, _boxleft + 1, _boxtop + 1, sign(image_xscale), sign(image_yscale), image_blend, image_alpha);
} (obj_queen_wineglass.xstart - xx - xx0, wineheight - height_fix, 142 + xx, 20); |
147 |
} |
148 |
else |
149 |
{ |
150 |
scr_drawinboxscr_drawinboxfunction scr_drawinbox(arg0, arg1, arg2, arg3)
{
var _boxleft = arg0 - (arg2 / 2);
var _boxtop = arg1 - (arg3 / 2);
var _xx = (_boxleft - (x - sprite_xoffset)) + 1;
var _yy = (_boxtop - (y - sprite_yoffset)) + 1;
draw_sprite_part_ext(sprite_index, image_index, _xx, _yy, arg2, arg3, _boxleft + 1, _boxtop + 1, sign(image_xscale), sign(image_yscale), image_blend, image_alpha);
} (obj_queen_wineglass.xstart, wineheight - 9, 142, 20); |
151 |
} |
152 |
} |