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

#1 2011-08-23 09:34:45

spud1998
Scratcher
Registered: 2011-06-07
Posts: 15

Save Level

Hi Guys

Can you programme Scratch so you can save which level you have reached?

I would appreciate some help.

Thanks

Offline

 

#2 2011-08-23 09:44:43

fuz50
Scratcher
Registered: 2008-09-19
Posts: 100+

Re: Save Level

Do you mean like if you press the Green Flag after you have progressed in the game, your current level will be saved anyway?

An easy way you could do that would be to add a variable that records every time you complete a level. When you reach the end of the level, the variable would increase by 1. If the Green Flag was to be pressed at any time, the variable would "remember" what level you were last on with a number representing it (2 for Level 2, 3 for Level 3...). If you were to use this strategy, however, you would need to be sure this variable would be set at 1 before you bring it online.

A list might work as well...

Anyways, unfortunately, there is no way that you can retrieve your score after you move away from its page.  sad

Hope this helps!  wink


http://img10.imageshack.us/img10/7404/cooltext529102298.jpg
http://siggen.toontown-click.de/sig1.pnghttp://siggen.toontown-click.de/sig2.png

Offline

 

#3 2011-08-23 10:32:51

flashgorcazy-test
New Scratcher
Registered: 2011-08-23
Posts: 5

Re: Save Level

spud1998 wrote:

Hi Guys

Can you program Scratch so you can save which level you have reached?

I would appreciate some help.

Thanks

2 ways
say to download the project then, it should save the variables when you hit save just don't put
[blocks]
<when green flag clicked>
<set{  }to( 0
[/blocks]
or, make
a vfm (check out my projects for more details)

Offline

 

Board footer