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

#1 2009-06-04 22:47:09

keikij
Scratcher
Registered: 2009-02-22
Posts: 1000+

Save/Load Feature

In a future version of Scratch could there be a save and a load block? When you saved it would make a file with you save data and you would be able to load it in the game. Scratch programs would have to be in their own folders so the save files wouldn't get mixed up. or the save dat would be call "<gamename>save.save" or something.


Back from the Dead (And Stuff)

Offline

 

#2 2009-06-04 22:49:22

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Save/Load Feature

This has been suggested many times. Don't count on scratch 1.4 having it though.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2009-06-08 08:01:04

Zorbak42
Scratcher
Registered: 2009-01-27
Posts: 100+

Re: Save/Load Feature

I have always wanted a save and load feature, it would be awesome for making RPGs
[blocks] <when green flag clicked> [/blocks]
            load saved data
[blocks] <when[ s ]key pressed> [/blocks]
            save data

Last edited by Zorbak42 (2009-06-08 08:04:29)

Offline

 

#4 2009-06-08 08:05:03

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Save/Load Feature

Interesting idea

Offline

 

#5 2009-06-08 11:23:46

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: Save/Load Feature

You can already do this is in a way, but it would be complicated. You could have a variable for the positions of every sprite, their direction, costumes etc and save that as a list. Then when you load the game the project reads that list and tells every sprite what they're doing from the variables.


http://i33.tinypic.com/15i5fmp.png

Offline

 

#6 2009-06-08 13:25:09

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Save/Load Feature

No, saving a list won't work online. If you want to save offline just hit the save button and it will save your variables.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2009-06-08 20:10:00

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: Save/Load Feature

saving only works offline.  a simple way is to set all teh variables before posting and then not allowing them to reset every time you restart the game.  so you start with the same amount of stuff.


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

#8 2009-06-09 21:52:04

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: Save/Load Feature

i still think that this is a great idea though!


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

#9 2009-06-10 20:22:22

keikij
Scratcher
Registered: 2009-02-22
Posts: 1000+

Re: Save/Load Feature

archmage wrote:

No, saving a list won't work online. If you want to save offline just hit the save button and it will save your variables.

Unless you set the variables back to a defualt when start is clicked. You can put the variable in a list then import it as "<project name here>Save.list or something.


Back from the Dead (And Stuff)

Offline

 

#10 2009-07-05 03:44:37

Abcq2
Scratcher
Registered: 2009-04-25
Posts: 3

Re: Save/Load Feature

[blocks]
<when[ s ]key pressed>
<set{ savegame name }to( Game 1 )
<save game>
<stop script>

Offline

 

Board footer