Limiting Vertical Movement of MC

Hey guys!

I’m building a simplified highway driving simulation for my Drivers’ Ed class (bird’s eye view).

The user is currently able to drag the car all over the stage. I’d like to limit both horizontal and vertical movement to a certain square or rectangular area.

How???

Thanks!!

j