# Game hitTest problem

**URL:** <https://forum.kirupa.com/t/game-hittest-problem/273179>\
**Category:** programming\
**Created:** [October 12, 2008, 5:23pm UTC](https://forum.kirupa.com/t/game-hittest-problem/273179 "2008-10-12T17:23:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [October 12, 2008, 5:23pm UTC](https://forum.kirupa.com/t/game-hittest-problem/273179/1 "2008-10-12T17:23:58Z")

</div>

im running this code on flash 8 and i need help. im trying to track if my char touches a movie clip that is constantly being duplicated.  
here is my code

```auto

canmove = true;
onEnterFrame=function(){
}
init = function () { 
width = 500; 
// pixels 
height = 400; 
// pixels 
max_snowsize = 5; 
// pixels 
snowflakes = 75; 
// quantity 
for (i=0; i<snowflakes; i++) { 
t = attachMovie("snow", "snow"+i, i); 
t._alpha = 20+Math.random()*60; 
t._x = -(width/2)+Math.random()*(1.5*width); 
t._y = -(height/2)+Math.random()*(1.5*height); 
t._xscale = t._yscale=50+Math.random()*(max_snowsize*10); 
t.k = 1+Math.random()*2; 
t.wind = -1.5+Math.random()*(1.4*3); 
t.onEnterFrame = mover; 
} 
}; 
mover = function() { 
this._y += this.k; 
this._x += this.wind; 
if (this._y>height+10) { 
this._y = -20; 
} 
if (this._x>width+20) { 
this._x = -(width/2)+Math.random()*(1.5*width); 
this._y = -20; 
} else if (this._x<-20) { 
this._x = -(width/2)+Math.random()*(1.5*width); 
this._y = -20; 
} 
} 
init(); 

```

what do I track for the char to hit?  
i need canmove= false  
as an effect
