Need help with MC collision/laser/hittest something like taht

well it still doesnt work, for my torpedo i have this code… i changed it and it seems to me like eex=1 doesnt really matter too much so i took that out to uncomplicate things. the torpedo explodes but still explodes if the shark touches a bubble or is like 20 pixel away from it.

onClipEvent (enterFrame) {
	if (this != _root.torpedo) {
		_x -= Math.sin((_rotation-180)*(Math.PI/180))*5;
		_y += Math.cos((_rotation-180)*(Math.PI/180))*5;
	}
}
onClipEvent (enterFrame) {
**if (this.torpedo2.t3.hitTest(_root.shark))**
this.torpedo2.play();
	
}

here is my code… the boldi changed to whatever u said

i think it is likely that the code is working, although because of the rotation of the missile, and the way that the hitTest works, Flash returns a true with the hitTest instead of a false. If you look at the link i posted the other day, you’ll find a way around this.

check out this:
http://www.kirupa.com/developer/actionscript/advanced_collision.htm

i did check that forum out but i dont want to all complicated like that. but i guess i can live without it. ill just call them, motion sensing torpedos. :slight_smile: thanks for you help you saved me a lot of time.