# How to set area boundary in catch game?

**URL:** <https://forum.kirupa.com/t/how-to-set-area-boundary-in-catch-game/213668>\
**Category:** programming\
**Created:** [January 22, 2007, 10:21am UTC](https://forum.kirupa.com/t/how-to-set-area-boundary-in-catch-game/213668 "2007-01-22T10:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fionify](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@fionify](https://forum.kirupa.com/u/fionify)\
**Post date:** [January 22, 2007, 10:21am UTC](https://forum.kirupa.com/t/how-to-set-area-boundary-in-catch-game/213668/1 "2007-01-22T10:21:46Z")

</div>

Hi there,  
I have a catch game tutorial but the problem is that the catcher which is controlled by arrow keys on the keyboard slides out of the screen. How do I write the code in such a way that it will slide within a boundary?
