# Collision detection in a game

**URL:** https://forum.kirupa.com/t/collision-detection-in-a-game/262589
**Category:** flash
**Created:** [June 7, 2008, 10:57am UTC](https://forum.kirupa.com/t/collision-detection-in-a-game/262589 "2008-06-07T10:57:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ilyas415](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@ilyas415](https://forum.kirupa.com/u/ilyas415)
#### Post date: [June 7, 2008, 10:57am UTC](https://forum.kirupa.com/t/collision-detection-in-a-game/262589/1 "2008-06-07T10:57:19Z")

</div>

Hi guys. Need help with a small project im working on.  
Basically im trying to check for collisions succesfully and make the character move to a certain position when colliding with something.

Link: [http://truimagz.com/hosting/Public/testarea.html](http://truimagz.com/hosting/Public/testarea.html)  
Link to fla: [http://truimagz.com/hosting/Public/testarea.fla](http://truimagz.com/hosting/Public/testarea.fla)

If you need to check the collisions on th fla, go to the background mc and then to the 2nd frame and check the as for the 2nd frame. I have had like 100 attempts to get it working so any help would be sooo greatfully appreciated.

All i need isfor someone to look at the script and tell me what im doing wrong.

Thanks.
