I'm wonder how I would keep time on how long you're playing the level. Take this for example from Sonic 1:
<img src="http://imageshack.com/a/img69/2071/qmuj.jpg" border="0" />
And how would I make the score add up to how long you've been playing and how many rings you have at the end? Like this:
<img src="http://www.soniczone0.com/games/sonic2/gameplay/s2-gameplay-basicsimg11.png" border="0" />
Develop games in your browser. Powerful, performant & highly capable.
Make a global variable named timer
Make a global variable Time Bonus and set it to the amount of seconds the level should take.
system every 1 second add one to timer
set text - "Time: "&Floor(Timer/60) & ":" & right("00"&Floor(Timer%60),2)
at the end of the level:
system comape two values : time bonus-timer > 0 - add something to score.