# Hittest problem

**URL:** <https://forum.kirupa.com/t/hittest-problem/31913>\
**Category:** flash\
**Created:** [September 29, 2003, 4:47am UTC](https://forum.kirupa.com/t/hittest-problem/31913 "2003-09-29T04:47:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skinny\_T](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Skinny\_T](https://forum.kirupa.com/u/Skinny_T)\
**Post date:** [September 29, 2003, 4:47am UTC](https://forum.kirupa.com/t/hittest-problem/31913/1 "2003-09-29T04:47:57Z")

</div>

Hi I’m making an RPG and I’m having trouble with part of the code  
[AS]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.man)) {  
trace(“hit”);  
\_global.hitWall = true;  
trace("Wal mc: "+hitWall);  
\_root.man.stop();  
\_root.onEnterFrame = function() {  
\_root.movie;  
\_y -= 0;  
\_y += 0;  
\_x -= 0;  
\_x += 0;  
};  
\I know the code needs to go here  
}  
}  
[/AS]

I know where to code needs to go and everything I try loads up the wrong thing. Maybe the .fla would help better. When I walk into the green circle on the screen (u’ll know when u download it) My movie stops as planned. What I want is when I walk away from the tree again the movie starts scrooling with my character again
