I am working on a game that requires the user to jump over enemies to survive. I want to reward the user with points when they jump over an enemy. How can I accomplish this? All enemies have the same id because they are spawned through a random number generator.
May someone please help me in creating this so I may move forward with my game. Thank you.
Sincerely,
Alex