I have a global variable for score that increases by 1 every time an obstacle is destroyed after moving off-screen. On getting a Game Over, any remaining obstacles that move off-screen still add to the score variable. How do I stop this?
Also, the score always displays as "3" on starting the game preview, even though I've set it to 0 on start of layout. Can someone help me fix this?