Carrying over Total Score from Level 01 to Level 02

timbirks

  • Posts: 75
Hi All,  I have my scoring system set up so at the end of level 01 it adds up the time remaining, lives left, and hit points into one score on the score screen, however when I begin level 02 the only score that is carried over is from the hit points, I'd like the total score from level 01 to be the beginning score on level 02, any advice would be great thanks!
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!   

https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12

Derelikt

  • Posts: 92
Use a game attribute (purple ones). At the end on the level set the game attribute to the final score, then at the beginning of the next level set the score to the game attribute, hopefully that should do it.

sdieters

  • Posts: 2068
Actually you can skip the part where you set the score to game attribute. Simple use the game attribute troughout the whole game.

(whenever you het points)
Set (numberGA) to ((numberGA) + 1)

(when you press the start button on the main menu, you need to clear the scoreGA by doing...)
~set (scoreGA) to (0)
~switch scene to (level1)
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

Derelikt

  • Posts: 92
Actually you can skip the part where you set the score to game attribute. Simple use the game attribute troughout the whole game.

(whenever you het points)
Set (numberGA) to ((numberGA) + 1)

(when you press the start button on the main menu, you need to clear the scoreGA by doing...)
~set (scoreGA) to (0)
~switch scene to (level1)

Second that. It's way less of a hassle.