# HitTest with gotoAndPlay()?

**URL:** <https://forum.kirupa.com/t/hittest-with-gotoandplay/109761>\
**Category:** Uncategorized\
**Created:** [May 8, 2004, 11:46pm UTC](https://forum.kirupa.com/t/hittest-with-gotoandplay/109761 "2004-05-08T23:46:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![z\_nicz](https://avatars.discourse-cdn.com/v4/letter/z/71e660/32.png) [@z\_nicz](https://forum.kirupa.com/u/z_nicz)\
**Post date:** [May 8, 2004, 11:46pm UTC](https://forum.kirupa.com/t/hittest-with-gotoandplay/109761/1 "2004-05-08T23:46:31Z")

</div>

Hello

As I have said earlier I’m trying to make a car game. When my car hits another mc(lap) on the stage I want flash to move to another frame. I can’t get it to work with the code that I have:(

[COLOR=Blue] if(\_parent.lap.hitTest(\_x,\_y,true))  
{  
gotoAndPlay(23);  
}[/COLOR]

Do anyone know what kind of code I should apply to my car so that flash jumps to another frame when the car hits the mc?:-/
