# Set Boundary for collision detection

**URL:** <https://forum.kirupa.com/t/set-boundary-for-collision-detection/92089>\
**Category:** Uncategorized\
**Created:** [October 13, 2003, 6:03am UTC](https://forum.kirupa.com/t/set-boundary-for-collision-detection/92089 "2003-10-13T06:03:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xcute](https://avatars.discourse-cdn.com/v4/letter/x/71e660/32.png) [@xcute](https://forum.kirupa.com/u/xcute)\
**Post date:** [October 13, 2003, 6:03am UTC](https://forum.kirupa.com/t/set-boundary-for-collision-detection/92089/1 "2003-10-13T06:03:35Z")

</div>

gBallBaseLoc = (200, 300);  
gGameRect = (0, 0, 300, 400);

the code above is said to set the boundary for the movie clip…  
i tried it following a tutorial for collision detection but the boundary seems endless…meaning not working…  
is there any other way to set the boundary ?  
I’m need the steps…my actionscript is lousy…  
Please please please help…:\*(
