Join Paul Trani for an in-depth discussion in this video Saving and loading game results, part of Flash Professional CS5: Creating a Simple Game for Android Devices.
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 SharedObject.…SharedObject. Again, as I type that it's highlighted and I could hit Enter to select it.…
- Designing for mobile platforms
- Creating and optimizing game graphics
- Adding random movement and interactivity
- Moving players based on the accelerometer
- Using gestures
- Detecting collisions
- Implementing audio
- Adding scoring and levels
- Implementing a high score screen
- Publishing an app on both Mac and Windows
- Uploading to the Android Market
Skill Level Intermediate
1. Introduction to Mobile
Understanding the user4m 2s
2. Mobile Game Setup
3. Basic Game Movement
4. Advanced Interactivity
6. Mobile-Specific Functionality
7. Optimizing for Mobile Devices
9. Uploading to the Android Market
Next steps1m 22s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.