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

#1 2011-12-31 05:59:50

gaz003
New Scratcher
Registered: 2011-12-30
Posts: 1

Help with creating level scores please

Hi all

I wonder if you can help me. I have created a puzzle game with various levels, I need to create a score list that does the following:

1 - after completing the level i am on the scores go into the score box for that level
2 - the user can play that level again if they like, if the moves are less than before the old score for that level is wiped
3 - The user can also input their name which goes in the score list box with the score

If anyone can guide me with this at all I would be extremley appreciative!

All the best
G

Offline

 

#2 2011-12-31 06:59:33

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: Help with creating level scores please

I think this can be done using lists

Offline

 

#3 2011-12-31 07:02:56

LewisZapata-Lee
New Scratcher
Registered: 2011-11-30
Posts: 45

Re: Help with creating level scores please

gaz003 wrote:

Hi all

I wonder if you can help me. I have created a puzzle game with various levels, I need to create a score list that does the following:

1 - after completing the level i am on the scores go into the score box for that level
2 - the user can play that level again if they like, if the moves are less than before the old score for that level is wiped
3 - The user can also input their name which goes in the score list box with the score

If anyone can guide me with this at all I would be extremley appreciative!

All the best
G

I can't really understand what you're saying, but it sounds like you need to use a list.  Go to the variables section and click "make a list".  Call your list "scores".  you will also need a variable, called "score".  programme this script:

|change [score] by [{what you want to change the score by (e.g:time, no. of moves, ect...)}]|
|ask [name] and wait|
|add (join (answer) and (score)) to [scores]|

Offline

 

#4 2011-12-31 09:49:42

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help with creating level scores please

This looks like it might fit a bit better with the "All About Scratch" forum - I'll move it there for you.  smile

Offline

 

#5 2011-12-31 13:09:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help with creating level scores please

I'm a little confused.  hmm
Can you please post a little clearer?

Offline

 

#6 2012-01-01 13:19:48

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Help with creating level scores please

What you need to do for 1 and 2 is use lists and some variables. For example:

when I recieve [Level Complete!]
if (current moves) < item (level) of Scores
    replace item (level) of Scores with (current moves)
    ask "What is your name?"
    replace item (level) of Names with (answer)

Tell me if any of this doesn't make sense. If so, I will post in Scratch images.


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#7 2012-01-19 13:59:25

awilliams468
New Scratcher
Registered: 2012-01-19
Posts: 1

Re: Help with creating level scores please

Guys this is an Open University assignment question. Best if you don't tell the answer.

Offline

 

Board footer