Im making an endless runner where a player collects coins and avoids objects that kill him… Im using the director class instead of storyboard…It runs perfectly the first time you play it, but for some reason when you click play again, every time the player collides with a coin, it ads two coins, and every time the player collides with an object that is supposed to make him lose a life, it makes him lose two lives. Usually, the app will crash on a phone on the second time you play the game…if it doesn’t and you can play a third time a similar thing happens. But this time you gain 3 coins, and you lose 3 lives. Does anyone know why this may be happening?
Thanks in advance
If you can provide it, trimmed down if possible to just the essentials of where you declare the listener, its function “onCollision”, and where you remove it, that should help.