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

#1 2007-12-05 15:42:16

Jman720
Scratcher
Registered: 2007-11-27
Posts: 1000+

Is it possible....

Is it possible to make a game and then be able to save and load your progress on the game when it is finished so you do not have to star the whole game over?


Solve for x
2+3+2+(-9)+1x+2x=7

Offline

 

#2 2007-12-05 16:30:32

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Is it possible....

No  sad

Unless you implement a password system.

heres a tutorial I just found about it http://scratch.mit.edu/projects/Dave911/18421


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-12-05 19:54:56

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

Re: Is it possible....

NO IT IS NOT!!!! you simply make a save variable copy of everything, for example
When I recieve save game
Set save x to x position

When I recieve load game
Set x position to save x.


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

Offline

 

#4 2007-12-05 19:56:02

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

Re: Is it possible....

JoelP's game, the Art Of Rock autosaves every millisecond, and then you can load it at the start menu of his game.


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

Offline

 

#5 2007-12-05 19:56:48

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: Is it possible....

umm, you just said it wasnt possible, then explained how it was


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#6 2007-12-05 20:07:27

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

Re: Is it possible....

Scratch has no persistent state---you can't save the value of a variable from one run to the next.  That is, if you quit scratch or open a different project, then all your variable values are lost.

Offline

 

#7 2007-12-06 01:46:35

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

Re: Is it possible....

Ah, but I do like archmage's observation about being able to implement predefined (and possibly password dependent) re-entry forks in a progressive project, like a game with a story line. That's a very simple way to let users resume a project at a point they got to before leaving it.
Using the user's brain as a kind of 'persistent' memory for Scratch's state IMO is an extremely clever and beautiful method I didn't think of before (and another point in case for an 'I love it' button to forum posts)


Jens Mönig

Offline

 

Board footer