# Setting bounds for an mc (using pixels...y = 300 etc)

**URL:** <https://forum.kirupa.com/t/setting-bounds-for-an-mc-using-pixels-y-300-etc/129549>\
**Category:** Uncategorized\
**Created:** [November 24, 2004, 11:48pm UTC](https://forum.kirupa.com/t/setting-bounds-for-an-mc-using-pixels-y-300-etc/129549 "2004-11-24T23:48:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fargate](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@Fargate](https://forum.kirupa.com/u/Fargate)\
**Post date:** [November 24, 2004, 11:48pm UTC](https://forum.kirupa.com/t/setting-bounds-for-an-mc-using-pixels-y-300-etc/129549/1 "2004-11-24T23:48:07Z")

</div>

What I wanted to know is how I would be able to make it so that a certain mc could go no higher than say 300 pixels vertically. I know there’s a way to limit movement that way but I’m not sure how to put it. My scenario is basically this: I have a character which is moved with the arrow keys, he has vertical and horizontal movement but I don’t want him to be able to go any higher than about 300 otherwise it looks like he’s walking on the walls :P.

Thanks,

Fargate :thumb:
