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

#1 2011-07-19 14:54:21

spud1998
Scratcher
Registered: 2011-06-07
Posts: 15

Making A Scratch Game That You Can Save Through The Game

I want to make a scratch game where you can save the game (ingame) into your own folders - not you saving the game you have made, but the player playing being able to save the project the have made within the game.

Is this possible?

Thanks!

Offline

 

#2 2011-07-19 15:12:26

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Making A Scratch Game That You Can Save Through The Game

spud1998 wrote:

I want to make a scratch game where you can save the game (ingame) into your own folders - not you saving the game you have made, but the player playing being able to save the project the have made within the game.

Is this possible?

Thanks!

There are some ways to do this.

You can put the information that you need to save (level number, powerups player has, enemy positions, etc.) and put them in a list. Then tell the player to right-click the list and export it. You can import the list later. This doesn't work online, though.

You can use passcodes: maybe if you type 47h3q at a passcode screen, you go to level 5, or something. But then you can't save things besides level numbers, and someone could comment with all the passcodes, ruining the game.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#3 2011-07-19 16:25:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Making A Scratch Game That You Can Save Through The Game

The options scratchisthebest gave will work. You can also have the values that are needed saved to a list when the player clicks saved, then loaded back into variables when the player clicks load. Again, this also only works offline, but as long as the player saves the project before closing, they can come back to it later. Unfortunately, there is currently no way to save to a separate file automatically.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-07-19 18:29:07

Flait7
Scratcher
Registered: 2008-04-14
Posts: 100+

Re: Making A Scratch Game That You Can Save Through The Game

I think programs that save usually use cookies or save all of the information on a server, I don't think scratch allows you to do either of those.


http://scratch.mit.edu/static/projects/Flait7/2248016_sm.pnghttp://scratch.mit.edu/static/projects/Flait7/1827934_sm.png

Offline

 

#5 2011-07-20 06:08:14

spud1998
Scratcher
Registered: 2011-06-07
Posts: 15

Re: Making A Scratch Game That You Can Save Through The Game

ok, i am making a utility - a bit like a whiteboard - can i save the drawring?

Offline

 

#6 2011-07-20 07:30:08

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Making A Scratch Game That You Can Save Through The Game

To do the drawing then do what Harakou said.

Offline

 

#7 2011-07-20 08:06:19

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Making A Scratch Game That You Can Save Through The Game

spud1998 wrote:

ok, i am making a utility - a bit like a whiteboard - can i save the drawring?

A drawing would be a bit tricky. You'll have to have a 1 x 1 sprite that goes through every pixel line by line and checks what color it's touching, then stores that in a list. Obviously, the more color options you have, the more difficult it'll be.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2011-07-20 08:39:59

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Making A Scratch Game That You Can Save Through The Game

spud1998 wrote:

ok, i am making a utility - a bit like a whiteboard - can i save the drawring?

You can right-click on the stage and select "save picture of stage". Then, all the pen/stamp marks, the background, and sprites are transferred over to an image you can save. You won't be able to import it back into the project, though, but you can share it on an image website and post it on the fourms, for example, or use it as a costume or background.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#9 2011-07-20 08:41:57

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: Making A Scratch Game That You Can Save Through The Game

make the other variables set themselves to the number of "level" and have different codes for each level

Offline

 

#10 2011-07-20 09:30:08

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making A Scratch Game That You Can Save Through The Game

Even though this is a longer process: You could save all the variables to a list and ask the user to export the list ( Right-Click the title of a list on the display area, export list ) and then ask them to import it when loading a game.  smile

Offline

 

Board footer