1 | function scr_getboxbounds |
2 | { |
3 | if instance_exists(obj_growtangle) |
4 | { |
5 | minx = obj_growtangle.x - obj_growtangle.sprite_width / 2 |
6 | maxx = obj_growtangle.x + obj_growtangle.sprite_width / 2 |
7 | miny = obj_growtangle.y - obj_growtangle.sprite_height / 2 |
8 | maxy = obj_growtangle.y + obj_growtangle.sprite_height / 2 |
9 | } |
10 | else |
11 | { |
12 | minx = 999 |
13 | maxx = 999 |
14 | miny = 999 |
15 | maxy = 999 |
16 | } |
17 | } |