# Limiting Vertical Movement of MC

**URL:** <https://forum.kirupa.com/t/limiting-vertical-movement-of-mc/289772>\
**Category:** flash\
**Created:** [June 4, 2009, 2:40pm UTC](https://forum.kirupa.com/t/limiting-vertical-movement-of-mc/289772 "2009-06-04T14:40:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexa\_007](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dexa\_007](https://forum.kirupa.com/u/dexa_007)\
**Post date:** [June 4, 2009, 2:40pm UTC](https://forum.kirupa.com/t/limiting-vertical-movement-of-mc/289772/1 "2009-06-04T14:40:55Z")

</div>

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
