# Trying to get hittest to work and wondering why my counter is messed up

**URL:** <https://forum.kirupa.com/t/trying-to-get-hittest-to-work-and-wondering-why-my-counter-is-messed-up/329275>\
**Category:** Uncategorized\
**Created:** [August 8, 2012, 1:26am UTC](https://forum.kirupa.com/t/trying-to-get-hittest-to-work-and-wondering-why-my-counter-is-messed-up/329275 "2012-08-08T01:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)\
**Post date:** [August 8, 2012, 1:26am UTC](https://forum.kirupa.com/t/trying-to-get-hittest-to-work-and-wondering-why-my-counter-is-messed-up/329275/1 "2012-08-08T01:26:44Z")

</div>

Hello everyone! :beam:

It has been a long time since I used Flash and I need help with hit testing my jaws.shark.mouth to hittest with the diver.diver2.diver3.diver4.body.ab…

Then I am wondering why my objects do not restart when the timer is restarted… This is a game I am creating where the function is to stay alive for as long as possible. In order to do this, i have a timer that is on repeat with other movieclips that come into play.

When the mouth of the shark hits the diver, i want the diver to die, so i need the function to gotoAndPlay(“die”) of that sort… :h:

You use the mouse to control the shark, and then press enter to chomp or munch.

I am trying, in a sense, to recreate my old game as seen here: [Video Game News, Reviews, and Walkthroughs - IGN](http://freegames.1up.com/games/sharkattack.html)

If anyone can please help clean up my as3 or give me direction on how to get to where I want it is highly and most respectably appreciated! Thank you so much. :cowboy:

I will attach the fla so you can take a look at it… If you have any questions/comments/suggestions feel free to let me know… You can contact me at skype: mdjobadze or facebook or whatever else you want… PM…

Cheers! :pleased:

[Download FLA: (if you need other versions let me know and ill reupload) LINK!!](http://www.mdjstudios.com/mock1.zip) 🔗
