Saving and loading game results


show more Saving and loading game results provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices show less
please wait ...

Saving and loading game results

This game currently does a good job of just keeping track of the level the person was on and their score when they finish the game basically, by the time all of their players die. In fact, they can even enter in their name. But none of this data is being stored, and what I want to do is I want to store the highest score, known as sort of the all-time high score. So that's what I want to store, and each time you play it's going to compare your score against the all-time high score. So that's what I am going to do.

I am going to go into my File, this first frame here, and open up the Actions panel. And right down here, near the bottom, is this Show Results function, and there's a couple if else statements. But what I want to do is just after sort of turning off a couple this button and the high score name, I want to go ahead and basically create a shared object. It will store the all-time high score.

That's what I am going to create. So I am going to say var so, for SharedO...

Saving and loading game results
Video duration: 9m 0s 3h 35m Intermediate

Viewers:

Saving and loading game results provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices

please wait ...