Mario Like game questions?

Ok I know that question sounds a little funny (or not). But my questions is you know how in the mario game when you play that game and you past several levels your score adds up. Like when your in a level you get coins or hit something and points add up. Now with those points in that level it accumulates to overall score you know what I mean? Also saving your overall score?

Another thing is when you he goes through those pipes the level changes to another settings but he still in the same level with the same points lives time etc. I hope you anybody reading this understands me. Is there a way for that code.

So My questions are how to have points accumulate to overall score?
Transitioning scenes but still being in the same level?
Saving your overall points, and having your points accumulate to your overall score?

help is appreciated a lot thanks! :slight_smile:

[import]uid: 17058 topic_id: 19835 reply_id: 319835[/import]

Hello sebitttas,

  • For accumulating the score, for the overall score. You could say: score = x + x + x + x, x being different scores. Shown on the example below.

  • For transitioning scenes in the same level, you could see what other features director class provides for that. I am not quite sure what you mean.

  • For saving your overall points, you could use Ice.

Link :http://developer.anscamobile.com/code/ice

Overall Score:

[code]

score = score + score2 + score 3… etc.

local scoreTxt = display.newText(“100”,252,18,“Cartoon”,20)

local function scores(e)
scoreTxt.text = score
end

Runtime:addEventListener(“enterFrame”, scores ) [import]uid: 23689 topic_id: 19835 reply_id: 76964[/import]

@Michael Assadi thanks actually for the help also screen transitioning I got that working out. Thanks alot again [import]uid: 17058 topic_id: 19835 reply_id: 76966[/import]