|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
saving in flash games.
I'm working on my first flash game with my roommate and we're still learning everything so this could coneivably be an ignorant question...but, we're wondering if there is a way to save a flash game like you'd save any other game.
mmmyep. thanks. |
|
#2
|
|||
|
|||
|
Hi, the answer is yes. You would have to store any variables such as player x/y, score, health etc somewhere such as a text file or a database or as xml. I think lots of people would tell you to use xml. If you are going to run the game online you need to use a server side scripting language to save the data to one of the above formats. I use php but theres loads of others. Anyhow storing all the required game variables is the closest to taking a snap shot that you've got. (well in my opinion)
Last edited by Tann San : January 4th, 2004 at 02:22 PM. |
|
#3
|
||||
|
||||
|
or you could store it using cookies on the user's machine (assuming they accept cookies)
|
|
#4
|
|||
|
|||
|
awesome, thanks for the advice, i'll look into figuring that all out.
|
|
#5
|
|||
|
|||
|
i tried using all the above for a school project recently and found that with MX it's much easier with the new SharedObjects function, which allows flash to store variables on a users computer, alot like a cookie... but better cos it worked for me
Theres some good tutorials at flashkit for using them but this one here was pretty good -scotteh edit - i just found a tutorial file that i used for my school project which was really good for learning SO's which i put up on my serverhere. enjoy ![]() Last edited by scotteh : January 15th, 2004 at 07:49 AM. |
|
#6
|
|||
|
|||
|
Hi, I started using SharedObjects a couple of weeks ago and your definately correct, they kick ***!
|
|
#7
|
|||
|
|||
|
SharedObject does kick major butt, however, remember that if the file location is moved, then all the stored data won't be read anymore.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > saving in flash games. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|