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

#1 2013-04-05 07:38:14

Jakemeister
New Scratcher
Registered: 2013-02-17
Posts: 6

Need help with highscores!

Hello, I've been having a big problem with the entire highscore system that I have tried to make for my game that I have been creating for the past 6 months (school), now it's nearly deadline and I need to have the highscores built into the game urgently. What I'm getting at is, can anyone assist me personally, or perhaps include a highscore to this attached project? You would save my life.

Thank You!

http://speedy.sh/sa9CS/TARGET-PRACTISE-Szymon.sb - Link to the project

Offline

 

#2 2013-04-05 07:43:53

Jakemeister
New Scratcher
Registered: 2013-02-17
Posts: 6

Re: Need help with highscores!

An alternative link if that one does not work (which it does not for me) http://www.mediafire.com/?h1cowq606o3299h

Offline

 

#3 2013-04-05 09:29:54

dusty22
Scratcher
Registered: 2012-09-28
Posts: 49

Re: Need help with highscores!

How do you want high scores calculated? Like what do you want the score to be based on, just the total number of targets hit? How efficiently they use bullets?

Offline

 

#4 2013-04-05 09:55:16

Jakemeister
New Scratcher
Registered: 2013-02-17
Posts: 6

Re: Need help with highscores!

@Dusty22 Firstly, thanks for acknowledging this post, secondly I would love it if the the highscores were based on amount of targets hit,

Thank you!

Offline

 

#5 2013-04-05 11:12:22

xlk
Scratcher
Registered: 2013-03-18
Posts: 57

Re: Need help with highscores!

when gf clicked
set (score) to [0]
forever
 target's code goes here
 if <target is hit>//what's in here you put in the code that executes once a target is hit
  change (score) by [1]
 end
end

When I receive [game's over!]
if <(score) > (highscore)>
 set (highscore) to (score)
end

It's actually very simple, just have to use 2 variables.
If you want to have several highscores, them you'll have to make a list and add the scores onto them, and once the length of the list exceeds 10, make it delete the lowest score.

Offline

 

#6 2013-04-07 19:30:44

jkl0l
Scratcher
Registered: 2012-12-30
Posts: 46

Re: Need help with highscores!

xlk wrote:

when gf clicked
set (score) to [0]
forever
 target's code goes here
 if <target is hit>//what's in here you put in the code that executes once a target is hit
  change (score) by [1]
 end
end

When I receive [game's over!]
if <(score) > (highscore)>
 set (highscore) to (score)
end

It's actually very simple, just have to use 2 variables.
If you want to have several highscores, them you'll have to make a list and add the scores onto them, and once the length of the list exceeds 10, make it delete the lowest score.

Also, If you make it on scratch 2.0 then you can have the highscore be a cloud variable, where the data is stored on the website.


http://i50.tinypic.com/2q3c8b5.png

Offline

 

Board footer