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

#1 2011-05-27 21:43:40

diegobarle
Scratcher
Registered: 2011-04-26
Posts: 17

saving

Theres any script that you can do to save the game? Cause when i convert the scratch file to an executable, the game doesnt have the option to save. So i was wondering if you can do a script so that when you press, for example, the "s" button, the inicial variables are set to the number of the variable that is in that moment.

To make it clear. I have a variable named "counter", and I inicialize it in 0, while the game continues running, that variable changes to 5. So if you press the "s" button, the variable that is inicialized in 0, now is changed to 5 so when you enter again to the program, that variable is setted as 5.

Offline

 

#2 2011-05-27 22:23:01

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: saving

Unfortunately, there is no easy way to save.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2011-05-27 23:00:48

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

Re: saving

If you save a Scratch project, all the current values of variables will be saved. So, you could theoretically have the variables stored to a list, to be recalled next time the game is opened. However, I'm not sure how that would work with a project set to open with an executable file. It would probably depend on how that part was implemented.


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-05-28 01:11:29

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: saving

If you are running it in scratch, you could use lists. That way you can right click on the list and click export. You can also import text files to replace the current list values. If it is an executable though, i have no idea.

Offline

 

#5 2011-05-30 10:51:38

cheese49210
Scratcher
Registered: 2011-02-28
Posts: 10

Re: saving

If you need to save go to "File" near the top of the Scratch Program. Type in your project name and then when you open it again click on "File" and click on your project again and then it will open! Hope this helps  smile

Offline

 

#6 2011-05-30 11:22:16

cheese49210
Scratcher
Registered: 2011-02-28
Posts: 10

Re: saving

Oh click on "open" when you want to get the project open! I forgot to put that!   smile

Offline

 

#7 2011-05-30 13:14:20

diegobarle
Scratcher
Registered: 2011-04-26
Posts: 17

Re: saving

ok thanks all of you. I´ll see if i can manage to make any script to make this. If not, well, if someone wants to continue playing the game after exiting it, he must play unsing the scratch program and save the game from there  tongue

Offline

 

Board footer