# Help making a "starship with lazers" game

**URL:** <https://forum.kirupa.com/t/help-making-a-starship-with-lazers-game/132274>\
**Category:** Uncategorized\
**Created:** [December 25, 2004, 6:07pm UTC](https://forum.kirupa.com/t/help-making-a-starship-with-lazers-game/132274 "2004-12-25T18:07:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thenHm](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@thenHm](https://forum.kirupa.com/u/thenHm)\
**Post date:** [December 25, 2004, 6:07pm UTC](https://forum.kirupa.com/t/help-making-a-starship-with-lazers-game/132274/1 "2004-12-25T18:07:51Z")

</div>

the starship in my game has some lasers witch are created using duplicateMovieClip, each one on diferent levels. and they should destroy a randomly created object that they hit.  
i’m trying to do this by using hitTest, but I can’t get it to work, because the instance names of the movieclips created are changing with each frame…

—Syntethised:

1. Is hitTest affected by detph?
2. Could someone suggest me a method to make the lasers destroy the randomly created targets?
