This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-12 18:54:00

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Save?

How can I make a game where you can save?


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#2 2009-11-12 20:34:43

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Save?

Unfortunately you can't.  sad

There are things you can do, though. You could make a password system where you enter a password and it takes you somewhere. On other (but slightly complicated) way is to make the user download the project, and not make the game reset when you press the green flag. Whenever the user wants to save, they just press the "Save" button at the top to save the project, then when they return the data will still be there.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2009-11-12 20:43:19

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Save?

hmnwilson wrote:

Unfortunately you can't.  sad

There are things you can do, though. You could make a password system where you enter a password and it takes you somewhere. On other (but slightly complicated) way is to make the user download the project, and not make the game reset when you press the green flag. Whenever the user wants to save, they just press the "Save" button at the top to save the project, then when they return the data will still be there.

Zoomreddin wrote:

sad  &  smile

Thank-you for your time I will try that!  smile


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#4 2009-11-12 20:45:27

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: Save?

Andresmh recently announced that there could be a more online version of Scratch, sort of like NetScratch, and that included possibly a way to save your games online. But these were just suggestions, so don't expect it. Just use the ways mentioned by hmnwilson.


Scratchin' since 2007

Offline

 

#5 2009-11-12 23:52:43

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Save?

You can go old school...
Decide on a minimum amount of variables that would constitute a Save in your game. The less variables needed the easier this is to do, by the way. Anyway, lets say we wanted to Save...
position
health
current level
for a total of four variables to Save. Make your game so that when the player uses the Save feature, the game computes the position into two variables (x and y), the health into one variable, and the current level into another. Then it sticks them all together and outputs (says) it to the player on screen. The player writes it down on paper. The next time they start the game, they use the Load option to hand enter the last Save code. The game starts back where they saved it at. If you are worried about people "cheating" via the Save code you can figure out a way to scramble it, maybe with a checksum also. Like everything else on Scratch, this is not a perfect solution to all games but it is a far cry from not being able to continue a game between Scratch sessions, in my opinion.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#6 2009-11-13 10:46:31

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Save?

Locomule wrote:

You can go old school...
Decide on a minimum amount of variables that would constitute a Save in your game. The less variables needed the easier this is to do, by the way. Anyway, lets say we wanted to Save...
position
health
current level
for a total of four variables to Save. Make your game so that when the player uses the Save feature, the game computes the position into two variables (x and y), the health into one variable, and the current level into another. Then it sticks them all together and outputs (says) it to the player on screen. The player writes it down on paper. The next time they start the game, they use the Load option to hand enter the last Save code. The game starts back where they saved it at. If you are worried about people "cheating" via the Save code you can figure out a way to scramble it, maybe with a checksum also. Like everything else on Scratch, this is not a perfect solution to all games but it is a far cry from not being able to continue a game between Scratch sessions, in my opinion.

Zoomreddin wrote:

Ok I'll try that!
I'll try that I think that's what I need! Thank-you.  smile


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

Board footer