I am creating a shooting game where I am shooting projectiles from one node targeted at enemy projectiles. When the projectile makes contact with two enemy nodes simultaneously, the contact delegate gets called twice. I want to be able to know how many nodes the projectile has come in contact with in order to give the player a 2x bonus.
Can anybody suggest a clean and efficient way to achieve this?
So, I went with the suggestion by Dobroćudni Tapir in the comments section.
Added a variable called hitCount as a property of the subclassed projectile SKSpriteNode.
Then in the didBeginContact of the scene
Then, finally in the projectileNode, I overrode the removeFromParent method