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

#1 2012-10-20 16:38:58

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

saving in a scratch project

I'm making a pretty cool game maker complete with snap to grid, 12 x 12 texture squares, and a set for saving your created game. The major problem is that the information for load and saving is in a list and this list can contain hundreds of separate items. I need an easy way for people to be able to load up their previous creations without having to type in four hundred numbers.

If there isn't a way to simplify loading then is there a way to allow people to copy the numbers from scratch and then paste it using the question block.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#2 2012-10-20 17:35:27

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: saving in a scratch project

You can use the list import/export features to save a list's contents to a file on disk. Right-click a list watcher to display options for importing and exporting.


nXIII

Offline

 

#3 2012-10-20 21:08:36

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: saving in a scratch project

If the user is required to download the project, you could do this:

make variables or a list however DO NOT use the set variable to ___ block or the list block to set it to something when the green flag. This will reset it everytime you click the green flag.

when you save everything, save the info in the lists/variables, and then ask the user to save the project (like in scratch to click the file menu and click save).

Since the variables/watchers values save with the project, the result is a crude way of saving with NO MODS!!!!  wink


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

Board footer