# Hit Test problem

**URL:** https://forum.kirupa.com/t/hit-test-problem/119872
**Category:** Uncategorized
**Created:** [August 18, 2004, 6:46pm UTC](https://forum.kirupa.com/t/hit-test-problem/119872 "2004-08-18T18:46:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lord\_Rahl](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@Lord\_Rahl](https://forum.kirupa.com/u/Lord_Rahl)
#### Post date: [August 18, 2004, 6:46pm UTC](https://forum.kirupa.com/t/hit-test-problem/119872/1 "2004-08-18T18:46:06Z")

</div>

I am creating a game with Flash MX have come across a few minor problems. For example, I have it when the bad guy touches the good guy it should -1 from Lifes and gotoAndPlay(“Scene”,1). But instead it does nothing when they touch. It comes up with no errors so my script is either wrong or in the wrong place. One other minor problem as well is I thought I had locked script boxes from the players b4 but can’t remember how to do it, so any info will help thx.  
The file I tried to upload was to big and it would not except my compressed file because its a RAR file. ☹ If it would not be a problem I could really use a new script for my MC’s. (Hit test script). Please and thanks.

---

<div class="post-metadata">

### Author: ![Behemoth\_Dan](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Behemoth\_Dan](https://forum.kirupa.com/u/Behemoth_Dan)
#### Post date: [August 18, 2004, 9:32pm UTC](https://forum.kirupa.com/t/hit-test-problem/119872/2 "2004-08-18T21:32:19Z")

</div>

I have a small side scroller that I made, that has code that will do what you are looking for. It is also too big to upload here, but if you have a place could send it, you are more than welcome to look at/use the code if needs be. I have already given it to 4 or 5 people on hese forums for various problems, and it seems that is has helped.

Let me know if you want it.

---

<div class="post-metadata">

### Author: ![Lord\_Rahl](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@Lord\_Rahl](https://forum.kirupa.com/u/Lord_Rahl)
#### Post date: [August 19, 2004, 7:19pm UTC](https://forum.kirupa.com/t/hit-test-problem/119872/3 "2004-08-19T19:19:57Z")

</div>

Sure, that would be really helpful. Send it to me at [Heros\_Darkness@yahoo.com](mailto:Heros_Darkness@yahoo.com). Thank you kindly man.
