PDA

View Full Version : Hittest for bullets



mad_man
December 19th, 2005, 10:57 AM
hello,
i am developing a game or trying to at least. Its a space shooter type of game. But I cant figure out how to do hittest for hero's bullets on enemmies because there are soo many diff enemmies with diff names and the bullets are names incrememntely also like bullet1 bullet2 bullet3... so i cant do a hittet on name. I was wondering how i would solve this problem.

eiefai
December 19th, 2005, 06:23 PM
maybe this will help you, its about multiple hittesting

mad_man
December 19th, 2005, 08:45 PM
hmm sorry i had trouble understanding it. could you please explain it possible?

eiefai
December 21st, 2005, 10:55 PM
its very simple, its about ants (arrows) and fruits, it creates instances of the fruits and the ants, each ant is looking for food; this example uses multiple hittesting between instanes and maybe this will help you out on what you want.

not always you will find exactly what you need, so you have to look for what you can use to get what you want