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

#1 2008-01-09 15:22:40

lilhd
Scratcher
Registered: 2007-12-03
Posts: 26

IS THERE A WAY TO SAVE A GAME!!

I'm going to make a long game and I was wondering if there was a way to save the game then go back later and load it.

Offline

 

#2 2008-01-09 17:46:03

Lanie624
Scratcher
Registered: 2007-07-13
Posts: 500+

Re: IS THERE A WAY TO SAVE A GAME!!

yes when you are on the scratch program on the top there should be buttons that say save, save as, and upload! Click on save and then type the file name you want it to be called. Then exit. When you go back on the scratch program click on Open and select your file


smile

Offline

 

#3 2008-01-09 19:31:49

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: IS THERE A WAY TO SAVE A GAME!!

I think what lilhd wanted was a way to save the state of the game play, not the program itself.
Currently, there are no persistent variables, and so no way to save the state of the game from one run of scratch to the next.  What some people have done to provide an illusion of state is to produce "secret codes" that unlock part of the game and then give the secret codes out when you get to the appropriate part of the game.  Of course, anyone can download the source code and find the "secret codes" for themselves.

Offline

 

#4 2008-01-09 21:11:06

lilhd
Scratcher
Registered: 2007-12-03
Posts: 26

Re: IS THERE A WAY TO SAVE A GAME!!

thanks kevin thats what I wanted, I guess ill try that

Offline

 

#5 2008-01-10 04:09:01

Gigabyte123
Scratcher
Registered: 2007-10-15
Posts: 100

Re: IS THERE A WAY TO SAVE A GAME!!

There is a way to save a state of gameplay. Make a 'save' copy of every variable. So when a game is loaded, the objects go to their 'save' position. eg.

When I recieve SAVE
   set save x to x
   set save y to y

then...

When I recieve LOAD]
   set x to save x
   set y to save y

I hope that helps


gather your confidence- reach for the skies... and always use deoderant!

Offline

 

#6 2008-01-10 05:10:10

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: IS THERE A WAY TO SAVE A GAME!!

This will not work, Gigabyte123, because there is currently no way for Scratch to persistently save anything, except if your're saving your whole project in the offline version of Scratch (which will - of course - also save its state).


Jens Mönig

Offline

 

Board footer