I have set all of the bullets as collision type 3
some of the enemy ships are type 2
some are type 1
when I do a for-next loop to cycle through the bullets how do I use entitycollided to find out which enemy ship was hit?
Or when I cycle through the enemy ships how do I find out which ship was hit?
I tried using
For tr= 1 To 100
hit_ship= EntityCollided (bullets(tr),1)
If hit_ship<>0
HideEntity hit_ship
EndIf
next
but hit_ship is always zero no matter how many times I see the bullet collide
some of the enemy ships are type 2
some are type 1
when I do a for-next loop to cycle through the bullets how do I use entitycollided to find out which enemy ship was hit?
Or when I cycle through the enemy ships how do I find out which ship was hit?
I tried using
For tr= 1 To 100
hit_ship= EntityCollided (bullets(tr),1)
If hit_ship<>0
HideEntity hit_ship
EndIf
next
but hit_ship is always zero no matter how many times I see the bullet collide