I'm having trouble with something: I made one bullet object that is shared between player and enemies, and proper collision is based on instance variables.
Everything is working fine, but I'm planning another enemy bullet that is destroyable by player bullets, but since it's the same object I can't figure what to do.
The best I could get was destroyable bullets that destroyed themselves while colliding with the same type.
Any ways to solve this?
Thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.
I was looking for a similar thing and found this topic which includes some instructions that were just a little bit beyond my grasp but maybe it will help you: