00:00
00:00

Save/Load Tutorial

Share Collapse

Author Comments

This will show you how to add a save game and load game function to your games. Some AS knowledge is required to customize the scripts to suite your own game.

Please tell me about any codes not working and/or spelling mistakes thank you.

Log in / sign up to vote & review!

Newgrounds accounts are free and registered users see fewer ads!

Nice!

This was really helpful and you explained well. To the man below me. You could make it so that once the item is in your inventory have a variable called "filled" and set it such as:
[ var filled = 0;
if (itemSlot1 = itemSlot2){
filled = 1
}
]
And, Instead of the object automatically going into the spot, have a picture of the item, and put this with the save and load functions and voila!

Mmmmmm

I Like It And It Explains A Lot But I Still Cant Do Some Things =[ Such As Saving An Object With Values In Inventory In A Game Im Making-
function makeSword (){
damage = (math.random*(5)+2)
durabillity = (math.random*(10)+8)
}
=S thats it simplefied altho that code probs wont work ^^

Good

Helpful tutorail. I'm making a pokemon platformer (just cos i can) and i'm sure this tutorial will come in very handy :D

10/10
5/5
Favourited
Submitted to tutorials section

BIG PROBLEM!

Problem

That last part cannot work for me due to the fact that my computer has no Mouse Wheel.

Help :( im stuck.

Ok, im trying to create a Diablo 1 Clone using Macromedia Flash 8. I tried testing the save system on a new flash document, which just has the character moving, and the x and y locations. Those work, just can't seem to get the save and load working?

Email me at Mikeyb2k7@hotmail.co.uk if you can help me. I also need help with further progress of this game, so if you know bits about making a real time RPG. Then please do contact me on the above email, your name will be in the credits.

Or if you prefer to phone me, let me know by email first.

Regards,

Mike.

Credits & Info

Views
11,015
Faves:
25
Votes
22
Score
4.36 / 5.00

Uploaded
Aug 23, 2006
5:31 PM EDT
Genre
More Games