High score question:

crazycowcrazycow Member Posts: 21
edited November -1 in Working with GS (Mac)
Is there anyway of being able to save highscores, even if the person closes the app? I'm using a system I found in a Youtube vid, but with that if you close the game all your high scores are reset.. Thanks for reading and I hope there's an answer to my question.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Yes, using the save attribute and load attribute behavior.

    Check out the cookbook videos under support at the top, there is one on that topic
  • osucowboy18osucowboy18 Member Posts: 1,307
    Yes, just use the save and load behaviors.

    - Alex

    Edit: Dang to slow :)
    _________________________________________________________________________________

    Custom Soundtracks and Sound Effects
    Vertical/Horizontal Level Select Template
    Mac Mini For SALE!!!
  • crazycowcrazycow Member Posts: 21
    I've done that and it still resets to 0..
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    There's some place you aren't loading the attribute, or loading it correctly when it goes into a scene, I think.
  • crazycowcrazycow Member Posts: 21
    If you don't mind, please could someone explain briefly the best way of keeping highscores then:)
  • DrGlickertDrGlickert Member Posts: 1,135
    First off, are you using an Ad-Hoc game? Or are you testing it in the viewer/creator?

    The way that I keep high scores is this;

    When the level is over, I have an attribute that triggers when the level is over.

    I have an actor that has a rule;
    When level is over, save attribute game.score KEY: level1score (or score, or whatever you want based on how your game is setup).

    When the game starts in my opening scene I have a Load attribute on a tiny actor that's has VISIBILITY unchecked and it has all the Load Attributes for the game.
  • crazycowcrazycow Member Posts: 21
    I'm using the creator for testing. I tried that but it still resets to 0
  • crazycowcrazycow Member Posts: 21
    Bump.
  • crazycowcrazycow Member Posts: 21
    It allways resets it too 0, no matter what I do.. I'm really annoyed xD
  • devjohnsondevjohnson Member Posts: 94
    The save attribute function does not work when you are testing using the gamesalad client. You will need to make sure you are using the gamesalad viewer application on your iphone, or you have installed an ad hoc version.
  • crazycowcrazycow Member Posts: 21
    devjohnson said:
    The save attribute function does not work when you are testing using the gamesalad client. You will need to make sure you are using the gamesalad viewer application on your iphone, or you have installed an ad hoc version.

    You need an Itunes dev thingie for the viewer, right? And what's the ad hoc version?
  • DrGlickertDrGlickert Member Posts: 1,135
    crazycow said:
    I'm using the creator for testing. I tried that but it still resets to 0

    You have to play an ad-hoc version or play the game that's been published to save/load attributes. Did you watch the video?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    DrGlickert said:
    You have to play an ad-hoc version or play the game that's been published to save/load attributes. Did you watch the video?

    I'm guessing no because that was stressed upon.

    Saving and loading only works in the viewer / adhoc builds. It will not work in the creator.
  • crazycowcrazycow Member Posts: 21
    What's the Adhoc mode/version?
  • DrGlickertDrGlickert Member Posts: 1,135
    crazycow said:
    What's the Adhoc mode/version?

    Have you paid the $99 for the developer's license from Apple?

    If you go to the dev page you can select to publish an "adhoc" version to practice on your phone/device.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    When you build the app and load it right onto your device.
  • crazycowcrazycow Member Posts: 21
    Do you need an Apple Dev account for all these modes?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    In order to put anything on your device, you must be a developer.
  • DrGlickertDrGlickert Member Posts: 1,135
    Yes, you have to pay the $99 for the dev license.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    crazycow said:
    Do you need an Apple Dev account for all these modes?

    Yes its the only way you can test iOS applications. If you plan to be a developer you will need to register as such.
  • crazycowcrazycow Member Posts: 21
    Okay, thanks.. I'll have to consider if it's worth it.. Is it?
  • iTouchGameriTouchGamer Member Posts: 681
    crazycow said:
    Okay, thanks.. I'll have to consider if it's worth it.. Is it?

    Only if you want the games you're creating to make it to the App Store. If you're doing this just for fun, it's not worth it.

    It's already worth it for me, and I haven't made any money yet lol
  • mangaroomangaroo Member Posts: 419
    its awesome to see the game in your hands. lets you have a look at the framesPerSecond as well and if you can release within the year then go for it :)
Sign In or Register to comment.