Save & Load on Windows Phone

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi,

    I'm trying to figure out how the array and ini objects work, on a Win Phone game in particular.

    Imagine a game, like Angry Birds, where your current progress on each level is stored even if you close the game (stars for how well you complete the level, essentially).

    1: Where is the saved content stored on a Win phone?

    2: What is the correct procedure to make sure the application always saves the recent global 'progress' values, and loads them when the application begins?

    And yes, I am already using global values to keep track on level progress in a level-selection frame.

    Thanks in advance!!

    Mobile Game Designer

    Current Project: Fingerfood!
    Platforms: Win Phone / iOS / Android
    Release Date: Q4 2013

  • I actually do not know where the data is saved. The only thing I know is that it IS saved.
    So here is how I would do it:
    When the user is playing, save the data with an indicator that a game is going on.
    To detect that your game has been started, use the "Application has been activated" (I think this is the name) condition in the XNA object.
    When it occurs, load the data, check the indicator, and go back in the game if it is set.

    Francois
    PM: Please login to see this link.

  • Thanks for your help.

    Am I supposed to save the data to the array and then save the array on file; then load the file and set my values from the array?
    i.e. is saving to file necessary to actually save the values that I store on an array, or is there some internal saving memory storing it?

    Also, my gameplay is going on in levels that are in different frames - do I save array and file in each level, but load them in the splash screen frame?

    Thanks!

    Mobile Game Designer

    Current Project: Fingerfood!
    Platforms: Win Phone / iOS / Android
    Release Date: Q4 2013

  • I think I just solved it by using 'start of frame' as a condition, instead of 'application has been reactivated', when loading the save file. Now I simply have to figure out where to save the file on a phone. :)

    Mobile Game Designer

    Current Project: Fingerfood!
    Platforms: Win Phone / iOS / Android
    Release Date: Q4 2013

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!