1 | global.interact = 1; |
2 | if (obj_time.left) |
3 | x -= 4; |
4 | if (obj_time.right) |
5 | x += 4; |
6 | if (obj_time.up) |
7 | y -= 4; |
8 | if (obj_time.down) |
9 | y += 4; |
10 | if (bbox_left < xbound) |
11 | x = xprevious; |
12 | if (bbox_right > xbound2) |
13 | x = xprevious; |
14 | if (bbox_bottom > ybound2) |
15 | y = yprevious; |
16 | if (bbox_top < ybound) |
17 | y = yprevious; |
18 | if (buffer == 1) |
19 | { |
20 | if (control_check_pressed(0) == 1 || control_check_pressed(1) == 1) |
21 | dest = 1; |
22 | } |
23 | if (dest == 1) |
24 | dest_timer += 1; |
25 | if (dest_timer >= 2) |
26 | instance_destroy(); |