saving a high score to your main scene?

nynetailedfox

  • Posts: 75
hi guys, is there a way to tell stencyl to save your high score from any one level to your main start scene kind of like flappy bird did? i say this not because i am making a flappy bird but because i am making an endless runner and it would be extremely helpful. any screenshots or detailed instructions would be greatly appreciated!

Bhoopalan

  • Posts: 1019
I don't know how flappy bird game is. But if I understand what you're trying to create, I think I might be able to help.

AFAIK, flappy bird doesn't have any levels. It's just an endless flying game. So the high score ever scored in a device is shown directly in the start scene?

If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

nynetailedfox

  • Posts: 75
that is correct my game differs from that in the way that when you die stencyl crossfades out of the "main scene" where you actually do the playing and loads into the "start screen scene" where you click the button to start. so what i am trying to accomplish is having it carry the score over to the "start screen scene" and save the highest one achieved if that makes sense.

Bhoopalan

  • Posts: 1019
That definitely makes sense. Just so you know, you could create game attributes to save the highscrore instead of normal attributes. This is because game attributes can be ported between levels and even game play sessions.

Now if you already know that and if you just want to how to check whether highscore is achieved, I'll share a snipetcode shortly. ;)
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

Maniacus

  • Posts: 69
There is a flappy bird game in stencyl forge. Download it and look at the code. It will show you what you need to do.

RickySticks

  • Posts: 2
Pretty sure there was something in the tutorial from abigail could help? http://www.stencyl.com/help/viewArticle/103