Thank you so much for your help and also for including print screens, it's always very helpful :)
I get a very weird result though and I have no idea why. If I play Level 1 and score 150 and then play the same level again and score 150, the total score says 300. I save everything with LocalStorage and here's the weird part. If I close the game and open it up again the total score no longer says 300, it's 150. Why do you think it shows the "correct" total score when I close the game but not as long as I'm still "in" the game?
Thanks again Boss
No Problem, Glad it helped
For the score are you using a Global variable? because the Global they don't reset as longs you are on the Game even if you change Levels, so if you added to TotalScore 150 and played again and you ad another 150 will = 300
If you need a new Fresh Total Score every Time you Loop the Array then before the loop set (TotalScore = 0)
or
an alternative make the "TotalScore" as Local Variable and at the end of the Loop set txt to TotalScore, the Local Variables are good for this example they reset each Thick you don't need to set (TotalScore = 0) at the start of the Loop it resets automatically