Control range of movement
![TangoDownStudios](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I have an object that the user can pick up and move with the mouse. When the object is picked up I want to make it so they can only move the object around in a 480x100 sized box located at the top of a landscape iPhone screen.
How do I constrict position.x, position.y to that box? Do I need to use min() max()?
How do I constrict position.x, position.y to that box? Do I need to use min() max()?
Comments
Y to the same but with self.position.y.