# How to restrict where a mc can be on the stage?

**URL:** <https://forum.kirupa.com/t/how-to-restrict-where-a-mc-can-be-on-the-stage/320351>\
**Category:** flash\
**Created:** [March 21, 2011, 2:43pm UTC](https://forum.kirupa.com/t/how-to-restrict-where-a-mc-can-be-on-the-stage/320351 "2011-03-21T14:43:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_T\_WALLER](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@R\_T\_WALLER](https://forum.kirupa.com/u/R_T_WALLER)\
**Post date:** [March 21, 2011, 2:43pm UTC](https://forum.kirupa.com/t/how-to-restrict-where-a-mc-can-be-on-the-stage/320351/1 "2011-03-21T14:43:15Z")

</div>

How do I restrict a mc to a certain area of the stage? I am going to have some buildings on the top of my stage and I don’t want my character to be able to walk past the street level. So basically I don’t want him to be able to go off the stage or up some to be determined height.

I am VERY new to this so if you could write it in very clear code, that would be very much appreciated.

Thanks
