1 | side = choose(0, 1, 2, 3); |
2 | if (side == 0) |
3 | { |
4 | x = random(room_width + 160) - 80; |
5 | y = room_height + 80; |
6 | } |
7 | if (side == 1) |
8 | { |
9 | x = random(room_width + 160) - 80; |
10 | y = -80; |
11 | } |
12 | if (side == 2) |
13 | { |
14 | y = random(room_height + 160) - 80; |
15 | x = -80; |
16 | } |
17 | if (side == 3) |
18 | { |
19 | y = random(room_height + 160) - 80; |
20 | x = room_width + 80; |
21 | } |
22 | size = 2; |
23 | friction = -0.3; |
24 | move_towards_point(room_width / 2, room_height / 2, 2); |