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

#1 2010-11-22 19:40:03

Jojorocks254
Scratcher
Registered: 2010-10-19
Posts: 23

Can you save your game in a Scratch game?

I need answers! My name is Jojorocks 254 and I want to know what script you use to save a game. i am making an aquarium game! please visit my gallery!  smile

Offline

 

#2 2010-11-23 11:43:22

digikids
Scratcher
Registered: 2009-01-06
Posts: 47

Re: Can you save your game in a Scratch game?

I don't think there is a script to save your game. When you save your game in a non-scratch game, a whole new folder gets created to store all the data from your saved game, and to my knowledge, scratch can't do that with scripts.


Please save them!
http://dragcave.net/image/hdUV.gif http://dragcave.net/image/j5mc.gif http://dragcave.net/image/l70L.gif

Offline

 

#3 2010-11-23 17:51:09

DJTHED
Scratcher
Registered: 2010-03-09
Posts: 25

Re: Can you save your game in a Scratch game?

Actually, it is possible, but it requires you to know how to use variables, but since you are a new scratcher, you should start off a bit easier. If you know how to use variables, then I'll help you out.

Offline

 

#4 2010-11-23 21:02:47

220089
New Scratcher
Registered: 2010-11-23
Posts: 1

Re: Can you save your game in a Scratch game?

digi you rock

Offline

 

#5 2010-11-24 00:33:14

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Can you save your game in a Scratch game?

DJTHED wrote:

Actually, it is possible, but it requires you to know how to use variables, but since you are a new scratcher, you should start off a bit easier. If you know how to use variables, then I'll help you out.

i so need your help can you help me with the saving games.


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&action=onlineStatus green= online gray=offline

Offline

 

#6 2010-11-24 11:01:14

DJTHED
Scratcher
Registered: 2010-03-09
Posts: 25

Re: Can you save your game in a Scratch game?

pen13 wrote:

i so need your help can you help me with the saving games.

OK, I will see if I can make a tutorial on how to save games, if you can keep an eye on my account, soon there will be a tutorial on how to. OK?

Offline

 

#7 2010-11-24 14:09:37

jonzo
Scratcher
Registered: 2008-07-25
Posts: 76

Re: Can you save your game in a Scratch game?

it is possible, but players must download for "save and come back later."

say you have "coins" on your game. make sure that when flag is clicked, it DOES NOT set "coins" to 0. then, if you click the green flag again, you will still have the same amount of "coins."

so you get 10 "coins" on your game for example. your "coins" variable is 10. now, you want to upload your project? WAIT! you must set "coins" to 0 before uploading. (go to "variables" tab, click "set "coins" to 0."

now, when people download your project, they can play again and again without losing their "coins."


⅃ O L

Offline

 

#8 2010-11-24 18:55:50

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Can you save your game in a Scratch game?

jonzo wrote:

it is possible, but players must download for "save and come back later."

say you have "coins" on your game. make sure that when flag is clicked, it DOES NOT set "coins" to 0. then, if you click the green flag again, you will still have the same amount of "coins."

so you get 10 "coins" on your game for example. your "coins" variable is 10. now, you want to upload your project? WAIT! you must set "coins" to 0 before uploading. (go to "variables" tab, click "set "coins" to 0."

now, when people download your project, they can play again and again without losing their "coins."

That's one way, but just remember you'll have to save the project before exiting Scratch, or it won't save the variables.

You could also do it with lists. You could add every variable you want to save to a list, then save. When you open the game again, it would use the items in the list to reset the variables the way they were.

There's even another way you can "save" using lists. If you show the list on the stage, right-click it, and then press "export", you can save the list as a text file. When you load the project again, just select "import..." and you can load the list again!

So, there's a few ways you can save using Scratch. It would be way easier if there were saving blocks, but it's possible even without them.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#9 2010-11-25 22:32:29

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Can you save your game in a Scratch game?

Here's an example of saving with variables: http://scratch.mit.edu/projects/Nitezscratch/582079

Offline

 

#10 2010-11-26 09:35:23

recycle49
Scratcher
Registered: 2009-12-21
Posts: 1000+

Re: Can you save your game in a Scratch game?

Yes you can, first of all you will need some vars. and lists to track information.

Instead of having it set levels at the start of the script, before you upload you set all vars. and lists to thier start points without adding them to the script, you can do this by double clicking the block and setting what you whant in it. Then when someone plays online they will start at one and next time they play they will have a saved game heres how it should work:

<when green flag clicked><switch to costume[ <{  Level}><broadcast[ Play]>

Before you uplo0ad double click this to reset the game without adding it to the script.

<set{Level  }to( 1)>


"Every challenge must be met, every battle must be won, and every story will end." -Me
Recycle49 December 09 - November 11 Goodbye

Offline

 

#11 2010-11-26 09:55:20

Thehero
Scratcher
Registered: 2010-02-15
Posts: 93

Re: Can you save your game in a Scratch game?

It is possible if you know how to use variables (ex. 08jackt makes the game save if your at a checkpoint if you are on the same page, it won't work if you refresh the page)

Offline

 

#12 2010-11-29 16:26:02

TheninjaGUY
Scratcher
Registered: 2009-10-26
Posts: 21

Re: Can you save your game in a Scratch game?

Currently  there is no possible way to save a game online but if the users download the game it is possible. Other programs that allow you to save (Flash, etc.) use cookies. Sadly cookies are not possible in Scratch.


Check out my project Why Bananas Are Yellow. Trust me it will be worth your time!  smile  Ninjas are watching you!  big_smile

Offline

 

#13 2010-12-03 08:55:32

bigbryan
Scratcher
Registered: 2009-07-28
Posts: 4

Re: Can you save your game in a Scratch game?

I dont think you can save your game in Scratch either youre downloaded or online, but i hope it can save in 2.0 Scratch... 2011 please come soon...

Offline

 

#14 2010-12-06 19:44:10

thezofie1
Scratcher
Registered: 2010-02-16
Posts: 23

Re: Can you save your game in a Scratch game?

i think you could do something to save the game... I'm not sure, ,and I don't think it would work online. But it would require using variables, and I'd have to think about it for a while...
wink
thezofie1  smile


http://oi53.tinypic.com/nqbkld.jpg

Offline

 

#15 2010-12-12 21:37:55

creat0r
Scratcher
Registered: 2010-11-29
Posts: 6

Re: Can you save your game in a Scratch game?

hey, i made a clock script, and its really neat, you can exit to the menu of the script and go back and it will go, but if i close scratch when i come back, it didnt continue, is there any way to do that?

Offline

 

#16 2010-12-30 16:44:00

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

digikids wrote:

I don't think there is a script to save your game. When you save your game in a non-scratch game, a whole new folder gets created to store all the data from your saved game, and to my knowledge, scratch can't do that with scripts.

actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

check it out!!
  smile

Offline

 

#17 2010-12-30 16:45:01

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

creat0r wrote:

hey, i made a clock script, and its really neat, you can exit to the menu of the script and go back and it will go, but if i close scratch when i come back, it didnt continue, is there any way to do that?

actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#18 2010-12-30 16:47:43

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

thezofie1 wrote:

i think you could do something to save the game... I'm not sure, ,and I don't think it would work online. But it would require using variables, and I'd have to think about it for a while...
wink
thezofie1  smile

well, todays ur lucky day!! you dont have to think about it! i made a saving script that you can leave and comeback and load it up again you could save and come back 100000000000000000000 years later and still work so, actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#19 2010-12-30 16:49:33

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

Thehero wrote:

It is possible if you know how to use variables (ex. 08jackt makes the game save if your at a checkpoint if you are on the same page, it won't work if you refresh the page)

this game you CAN save the game! even if you refresh the page!!!!! so, actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#20 2010-12-30 16:52:02

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

recycle49 wrote:

Yes you can, first of all you will need some vars. and lists to track information.

Instead of having it set levels at the start of the script, before you upload you set all vars. and lists to thier start points without adding them to the script, you can do this by double clicking the block and setting what you whant in it. Then when someone plays online they will start at one and next time they play they will have a saved game heres how it should work:

<when green flag clicked><switch to costume[ <{  Level}><broadcast[ Play]>

Before you uplo0ad double click this to reset the game without adding it to the script.

<set{Level  }to( 1)>

well i did it!! i did it before i saw this message, and i did not understand what you meant, and i did it a different way all together, but here it is....... so, actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#21 2010-12-30 17:01:35

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

hmnwilson wrote:

jonzo wrote:

it is possible, but players must download for "save and come back later."

say you have "coins" on your game. make sure that when flag is clicked, it DOES NOT set "coins" to 0. then, if you click the green flag again, you will still have the same amount of "coins."

so you get 10 "coins" on your game for example. your "coins" variable is 10. now, you want to upload your project? WAIT! you must set "coins" to 0 before uploading. (go to "variables" tab, click "set "coins" to 0."

now, when people download your project, they can play again and again without losing their "coins."

That's one way, but just remember you'll have to save the project before exiting Scratch, or it won't save the variables.

You could also do it with lists. You could add every variable you want to save to a list, then save. When you open the game again, it would use the items in the list to reset the variables the way they were.

There's even another way you can "save" using lists. If you show the list on the stage, right-click it, and then press "export", you can save the list as a text file. When you load the project again, just select "import..." and you can load the list again!

So, there's a few ways you can save using Scratch. It would be way easier if there were saving blocks, but it's possible even without them.

well, >.> you could save the whole thing in a variable or a list (but i think variable is easier) and you could just say <get 3rd letter in *saving code* (* = variable*) and get 4th letter and then so when you put in the code, it finds the letters out of the code to set as the different variables such as "strength". and then <find 3rd letter of *saving code* and set 3rd letter which may be *5* and set it as the variable of "strength>
so, in therie, actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#22 2010-12-30 17:04:05

noah279878582
Scratcher
Registered: 2009-08-21
Posts: 10

Re: Can you save your game in a Scratch game?

pen13 wrote:

DJTHED wrote:

Actually, it is possible, but it requires you to know how to use variables, but since you are a new scratcher, you should start off a bit easier. If you know how to use variables, then I'll help you out.

i so need your help can you help me with the saving games.

i can help!!! so, actully it is possible! you give the game a code and it loads in a "code" form it is just a tutorial and all but you can put it in any game! here it is:  http://scratch.mit.edu/projects/noah279878582/1509039

Offline

 

#23 2010-12-30 19:04:03

jfmlove6
Scratcher
Registered: 2010-12-20
Posts: 1000+

Re: Can you save your game in a Scratch game?

Do you want to save the game or variables because a lot of people are talking about variables on here. To save your game, go to the corner and click file, save as. Then you can save yor game to any place on your computer! Hope this helps  smile


http://bbsimg.ngfiles.com/1/23337000/ngbbs4e84d18f6a0ee.jpg

Offline

 

Board footer