Hi. I am having some issues with the interaction between the player bullet ("Player_Rifle_Bullet") and the enemy ("Enemy_Air_Test").
When the bullet hits the enemy it should substract 50 from its health but it doesn't. I noticed that if I remove the enemy from the "MetalObjects" family than it work fine, but I need it in that family for some effects to take place.
Develop games in your browser. Powerful, performant & highly capable.
you have to substract health in line 244 at metal family.
I think with your code the bullet is destroy at 244 so it can't done the line 321 because the bullet doesn't exist for this line.
Yes, that seems to be the problem. In this case I will remove the enemy air from the "MetalObjects" family and apply the effects to the "Enemys" family; I will give it an instance variable of health and than it should work ...