If MouseDown() and obj.x > x and obj.x < x + width and obj.y > y and obj.y < y + height then ... ... endif