I think the only way to do that is by testing the x and y coordinates with IF statements.