codah
My game is sort of a bowling game. You have to shoot at a cetain distance, pass trough all obstacles and try to take down all pins that are far enough from each other.
One of the bonuses that I will calculate to the final score is that if the player take down more than one pin with the same ball, it add a number that I will store and use to multiply his score.
Example:
Ball1 hit pin whatever.
Ball2 hit pin whatever
Ball2 hit another pin whatever.
... in this moment I need to check if it happened and how many times took down after the first pin. So, one extra pin (after the first) means a value that will affect the score, two extra pins another value and so on.
Edit: The reason that I'm trying to store UID's Ball is that I need this information to compare how many times the same ball hit and took down a number of pins.
Edit: to simplify, I need to know how many pins I took down with one ball. Knowing this, I only need to subtract 1 to know all the extra pins.