Shooting without hitTest

hi guys. i was wondering wot would be the best way of shooting enemies with hitTesting a bullet MC? ive tried measuring the distance between the enemy a nd the hero but i cant get it to work. so yeh any help would be good. thanx alot

Like your sig says, Its not that Im lazy, I just dont care.
throws a cream pie

Actually, I don’t know. you can compare the distance between the bullet and the enemy (without hitTesting it) and see if that distance is < 0.5 (or some delimitation according to the enemy size and bullet size…it all depends) onEnterframe…Say you name all of your bullets “b”, then you can getDepth of the bullet which is close to the enemy and destroy it (removeMovieClip) and then substract enemy HP or something…

It’s all speculation…Meditate on this as better programmers and people who spend more than 2 minutes on this will flock to this thread and give a better answer…hopefully…

yeh dude i tried the distance thing but it killed all the enemies at once. i was thinking the easiest way would be to have a transparent line mc protruding from the hero, lets call the line “range”. and if the enemy hitTests it, it randomly chooses whether to kill the enemy or not, and on the enemy ill just have if this hitTest range and kill = true, gotoAnPlay(“die”) , but im thinking there has to be an easier way.

once again, a plee to anyone who has any theories or ideas. thanx alot