Hey, ok im working on this game where you are a fish and you swim around while mines appear in the water and gravitate towards you. your saposto swim between two mines to make them blow up to score points. My problem is i dono how to do a good hit test between the duplicated bombs. could anyone show me a more efficant way of coding it? (I included the swf and fla files, the bomb duplicating code is in 30th frame of the brown square movie clip named codeHolder)
shotCount++;
if(bombCount<bombMax){
_root.bomb.duplicateMovieClip("bomb"+shotCount,shotCount);
_root["bomb"+shotCount]._x=random(300);
_root["bomb"+shotCount]._y=random(300);
}
[quote=lancerawks;2346679]Hey, ok im working on this game where you are a fish and you swim around while mines appear in the water and gravitate towards you. your saposto swim between two mines to make them blow up to score points. My problem is i dono how to do a good hit test between the duplicated bombs. could anyone show me a more efficant way of coding it? (I included the swf and fla files, the bomb duplicating code is in 30th frame of the brown square movie clip named codeHolder)
shotCount++;
if(bombCount<bombMax){
_root.bomb.duplicateMovieClip("bomb"+shotCount,shotCount);
_root["bomb"+shotCount]._x=random(300);
_root["bomb"+shotCount]._y=random(300);
}
[/quote]
Here’s all you need to make this work.