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

#1 2008-06-30 19:15:25

Enirahtak
Scratcher
Registered: 2008-04-19
Posts: 7

Creating a "Save Game" function

For my game, Mimoto, I would like to create a function that would allow players to save their progress and come back to it later.  I have no idea how to do this.  Please help!

Offline

 

#2 2008-06-30 19:16:29

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Creating a "Save Game" function

My account (that is a spare one) has a bunch of tutorials, and I am pretty sure one of them is saving

Last edited by Bluestribute (2008-06-30 19:16:46)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-30 21:39:26

Enirahtak
Scratcher
Registered: 2008-04-19
Posts: 7

Re: Creating a "Save Game" function

Omg Thank U!!!!

Offline

 

#4 2008-07-01 04:33:52

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Creating a "Save Game" function

Enirahtak wrote:

For my game, Mimoto, I would like to create a function that would allow players to save their progress and come back to it later.  I have no idea how to do this.  Please help!

I'm a big fan of bluestripe but... was that the answer you were looking for Enirahtak? I thought you were asking how to save a game, quit your game and then how to reload the saved situation when you go back to it. Is this right?

Offline

 

#5 2008-07-01 06:43:32

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Creating a "Save Game" function

Enirahtak wrote:

For my game, Mimoto, I would like to create a function that would allow players to save their progress and come back to it later.  I have no idea how to do this.  Please help!

Scratch doesn't really have the ability to save the state of a game.  What you can do, is give the player a "Password" that is essentially the state of the game (level, items carried, etc.) and then build a mechanism into the game that allows the player to enter the password and restore the state of the game.  I know I have seen a project that demonstrated this...try searching on Password.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2008-07-01 07:51:39

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Creating a "Save Game" function

If you just want it to be available to offline players, you can do something like this:
- use bluestripe suggestion to save the values
- inform the user in the instructions that they have to click "save" before quitting. this will also store on the .sb file the values of the variables
- under the green flag hat reload values using bluestripe suggestion

Offline

 

#7 2008-07-01 11:19:00

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Creating a "Save Game" function

I agree with Paddle2See. Since scratch doesn't have consistent variables (that means that variables are set to zero every time you view a project) you can't really have a save loading feature.

Offline

 

#8 2008-07-01 13:15:16

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Creating a "Save Game" function

s_federici wrote:

Enirahtak wrote:

For my game, Mimoto, I would like to create a function that would allow players to save their progress and come back to it later.  I have no idea how to do this.  Please help!

I'm a big fan of bluestripe but... was that the answer you were looking for Enirahtak? I thought you were asking how to save a game, quit your game and then how to reload the saved situation when you go back to it. Is this right?

Your a big fan of me? Awesome! I'm feeling more loved. And yes, that is one way. The only other way is passwords. I know someone made a really long way to do it. Don't know where though... In one of those tutorial galleries


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#9 2008-07-02 12:18:40

Enirahtak
Scratcher
Registered: 2008-04-19
Posts: 7

Re: Creating a "Save Game" function

It is, but-oh wait.

s_federici wrote:

Enirahtak wrote:

For my game, Mimoto, I would like to create a function that would allow players to save their progress and come back to it later.  I have no idea how to do this.  Please help!

I'm a big fan of bluestripe but... was that the answer you were looking for Enirahtak? I thought you were asking how to save a game, quit your game and then how to reload the saved situation when you go back to it. Is this right?

Offline

 

#10 2008-07-02 15:55:05

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Creating a "Save Game" function

If you were looking for something that would load codes I made a "string" project the other day. For instance if you gave someone the word "dog" at the end of a level or segment of your project, when they came back they could type it into it and this project could read that the word "dog" was typed in and take them to the appropriate spot. Still it would probably only be a use to you if you wanted to use words instead of numbers. Here it is anyway: http://scratch.mit.edu/projects/shadow_7283/202687

Last edited by shadow_7283 (2008-07-02 15:55:32)

Offline

 

#11 2008-07-02 22:07:15

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Creating a "Save Game" function

There's one on saving games in here (there should be  big_smile  ) : http://scratch.mit.edu/galleries/view/22696
(My tutorial gallery.)

Offline

 

Board footer