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

#1 2012-10-24 15:41:17

dave1998
New Scratcher
Registered: 2011-04-27
Posts: 56

Please Help!!!

In my game I have a score-
I want to add high score but dont know how????
When you complete my game it goes back to the start menu.
I want it so that when you play the level again it has your last score as the high score as well, but the actual score sets to 0.
If you keep replaying the level your high score= your highest ever score.
big_smile
PLEASE HELP!!!

Offline

 

#2 2012-10-24 16:03:30

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Please Help!!!

dave1998 wrote:

In my game I have a score-
I want to add high score but dont know how????
When you complete my game it goes back to the start menu.
I want it so that when you play the level again it has your last score as the high score as well, but the actual score sets to 0.
If you keep replaying the level your high score= your highest ever score.
big_smile
PLEASE HELP!!!

First, get this code:

when gf clicked
set [highscore v] to (0)
After that, run this code each time you finish a level:
if <(score) > (highscore)>
 set [highscore v] to (score)
end
And that should do it! I hope that this helps!


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-10-24 16:09:38

dave1998
New Scratcher
Registered: 2011-04-27
Posts: 56

Re: Please Help!!!

ErnieParke wrote:

dave1998 wrote:

In my game I have a score-
I want to add high score but dont know how????
When you complete my game it goes back to the start menu.
I want it so that when you play the level again it has your last score as the high score as well, but the actual score sets to 0.
If you keep replaying the level your high score= your highest ever score.
big_smile
PLEASE HELP!!!

First, get this code:

when gf clicked
set [highscore v] to (0)
After that, run this code each time you finish a level:
if <(score) > (highscore)>
 set [highscore v] to (score)
end
And that should do it! I hope that this helps!

CHEERS Ernie!
big_smile

Offline

 

#4 2012-10-24 16:49:39

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Please Help!!!

dave1998 wrote:

ErnieParke wrote:

dave1998 wrote:

In my game I have a score-
I want to add high score but dont know how????
When you complete my game it goes back to the start menu.
I want it so that when you play the level again it has your last score as the high score as well, but the actual score sets to 0.
If you keep replaying the level your high score= your highest ever score.
big_smile
PLEASE HELP!!!

First, get this code:

when gf clicked
set [highscore v] to (0)
After that, run this code each time you finish a level:
if <(score) > (highscore)>
 set [highscore v] to (score)
end
And that should do it! I hope that this helps!

CHEERS Ernie!
big_smile

It was nothing.  smile


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer