1 | var buy_shop_screen_number = global.buy_shop_screen_number |
2 | if instance_exists(obj_text_item_buy_shop) |
3 | { |
4 | if (buy_shop_screen_number < 5 && y > y_finish) |
5 | { |
6 | if (y > (y_finish + sprite_width / 3)) |
7 | y -= 12 |
8 | else if (y > (y_finish + sprite_width / 6)) |
9 | y -= 7 |
10 | else |
11 | y -= 5 |
12 | if (y < y_finish) |
13 | y = y_finish |
14 | } |
15 | else if (buy_shop_screen_number == 5 && y < y_start) |
16 | { |
17 | y += 20 |
18 | if (y > y_start) |
19 | y = y_start |
20 | } |
21 | } |
22 | else |
23 | y = y_start |