1 |
type = choose(0, 1, 2, 3); |
2 |
if (type == 0 || type == 2) |
3 |
{ |
4 |
hspeed = 2 + random(3); |
5 |
hspeed *= choose(-1, 1); |
6 |
if (type == 0) |
7 |
{ |
8 |
gravity_direction = 270; |
9 |
y = global.idealborder[2] - 20; |
10 |
} |
11 |
if (type == 2) |
12 |
{ |
13 |
image_angle = 180; |
14 |
gravity_direction = 90; |
15 |
y = global.idealborder[3] + 20; |
16 |
} |
17 |
} |
18 |
if (type == 1 || type == 3) |
19 |
{ |
20 |
y = (((global.idealborder[2] + global.idealborder[3]) / 2) + 50) - random(100); |
21 |
vspeed = 2 + random(4); |
22 |
vspeed *= choose(-1, 1); |
23 |
if (type == 1) |
24 |
{ |
25 |
image_angle = 90; |
26 |
gravity_direction = 0; |
27 |
x = global.idealborder[0] - 20; |
28 |
} |
29 |
if (type == 3) |
30 |
{ |
31 |
image_angle = 270; |
32 |
gravity_direction = 180; |
33 |
x = global.idealborder[1] + 20; |
34 |
} |
35 |
} |
36 |
gravity = 0.18; |
37 |
friction = 0.03; |
38 |
bounce = 0; |
39 |
on = 0; |
40 |
flash = 0; |
41 |
expl = 0; |
42 |
image_speed = 0; |