level specific score

chicopchicop Member Posts: 263
edited November -1 in Working with GS (Mac)
how can i best approach making level specific score? for instance each level the score is at 0.. you gain points, these are saved to that levels high score, then next level score is back at 0 since its a new level... but the score on the previous level is still there...

do i have to create separate score attributes for each level? or basically a separate score system..? but that could mean 60 different scores right?

i appreciate any feedback on this

thanks!

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    I'm afraid the only way I know of right now is to have a separate high score variable for each level.

    So yes, that could mean 60 different high scores I'm afraid.

    And remember you need to load them all in at the start too.

    Hope that helps!

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chicopchicop Member Posts: 263
    thanks TSB

    i think im gonna vote 'can have my baby' in the other post!
  • quantumsheepquantumsheep Member Posts: 8,188
    tshirtbooth said:
    NOPE, you can do it all with 1 attribute

    Here is a demo

    WARNING this will not work on the web as you cant use saves so download to see it work.

    http://gamesalad.com/game/play/87743

    Oh, sure.

    NOW you tell me!

    Pfffft

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Yeah, I was gonna suggest doing it that way too *runs off to check demo so he can pretend he knows how it works*
  • ktfrightktfright Member Posts: 964
    Tshirtbooth, is there anything you cant do? :P
  • AfterBurnettAfterBurnett Member Posts: 3,474
    tshirtbooth said:
    I can not alter the space-time continuum :(

    WHAT?!?! But that's EASY!
  • chicopchicop Member Posts: 263
    really cool man, i'm always amazed at how simple you keep your code

    i am now getting it so it ads +10 points on a click and it sets the score to 0 on each level when you enter it.. this works great!

    only thing is now it saves which ever score was your last one even if its lower then the previous score, so im trying to get it to only save when youve actually gotten a higher score...
  • chicopchicop Member Posts: 263
    i think im getting a bit lost as i'm using several tutorials.. but seems like theyre all slightly different enough.. its great to see how many different ways there are to do the same thing however im not that skilled yet to know which goes well with which

    could you explain it a bit more elaborate please? should i be creating a high score integer and is one enough or do i create one fore each level?

    thanks
  • chicopchicop Member Posts: 263
    Hey TSB

    ive gone all over the place and ive gotten really close but then it turns out it confuses the separate level scores.. ive even added ghostscores for all three levels but that doesnt do the trick either.. so basically i can get one level to save but then the others get all weird on me...

    could you tell me how i can compare the self.highscore to the new score and then save or not and do i put that in the self.highscore or somewhere else?

    heres what i have so far if any one wants to have a look see... after this i cant get anything to work..

    http://gamesalad.com/game/play/87920

    thanks
  • chicopchicop Member Posts: 263
    ok so i have it comparing from a self that loads in a saved score, however it seems as if it only saves one point at a time... so i am still messing up the comparing and then saving... ive updated the above project.

    (i do now have a version that saves individual scores to specific levels but that one means creating 60 separate score systems if you have 60 levels... http://gamesalad.com/game/play/88034 )
  • chicopchicop Member Posts: 263
    wootwoot!

    got it to work.. so switch the timer to every and not after. now it keeps the score!

    thanks TSB for starting off on this, your golden!

    cheers!
  • fedifedi Member, PRO Posts: 31
    Hi,

    and how you can make a Total of the 3 Highscores ? any idea ?
Sign In or Register to comment.