So my game's logic is whenever you get caught by the enemy, the whole game will start and you will lose your progress. The issue is that I managed to get the logic of restarting the level right. But the issue with resetting the progress is not yet solved. I need to reset the "Global Variable" of the Points Gathered.
I really need help in this issue please.
Thank you in advance.