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

#1 2012-06-06 05:05:47

Sally456
New Scratcher
Registered: 2012-06-05
Posts: 3

Really struggling!!!!!!!

I am currently running a  rogramm, the game is fully playable but has no scoring feature. I need to add a score watcher but struggling at the moment. I want the score watcher to include the number of moves taken to complete a level. Each level records the best score for that level.
The best score for a level is the fewest number of moves a player has used to solve the level.
When a player achieves a better score than the current best score, they are prompted to enter their initials and their score replaces the current best.
Scores do not need to be kept after you have finished playing.
I need the process the be something like the below format:
1. Do something … etc.
2. Do something … etc.
3. If …
3.1 Repeat until …
3.1.1 Do something … etc.
Could someone please help really struggling?

Offline

 

#2 2012-06-06 05:15:39

Jupitar
New Scratcher
Registered: 2012-06-05
Posts: 27

Re: Really struggling!!!!!!!

Welcome! I see. Although to find out the answer to this you would have more chance by posting on the Help with Scripts topic. Now, I'm quite confused. Do you want the scoring feature to count the moves? Or to work out a leveling system?

Last edited by Paddle2See (2012-06-06 06:30:48)

Offline

 

#3 2012-06-06 05:24:24

Sally456
New Scratcher
Registered: 2012-06-05
Posts: 3

Re: Really struggling!!!!!!!

Thankyou for replying.
I would like the scoring feature to count the moves.

Offline

 

#4 2012-06-09 13:16:30

Sally456
New Scratcher
Registered: 2012-06-05
Posts: 3

Re: Really struggling!!!!!!!

Anyone have an idea how to create the score watcher?

Offline

 

#5 2012-06-09 13:20:50

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Really struggling!!!!!!!

when gf clicked
forever if <a move is taken> // how would you define a move?
change [moves v] by 1
end

Offline

 

#6 2012-06-09 14:44:31

LEGOengineer261
Scratcher
Registered: 2011-11-16
Posts: 100+

Re: Really struggling!!!!!!!

Do you have the project posted? If it was, I'd be happy to download and find were to put the script, then post it here.


http://i1156.photobucket.com/albums/p562/LEGOengineer261/IronmanSERIOUSBOSS.jpg

Offline

 

#7 2012-06-09 15:03:43

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Really struggling!!!!!!!

JH1010 wrote:

when gf clicked
forever if <a move is taken> // how would you define a move?
change [moves v] by (1)
end

Fixed script.  smile

Offline

 

#8 2012-06-11 04:38:32

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Really struggling!!!!!!!

When you start the game, have it set the variable "highscore" to 9999999999999.

Then when you complete the level and need to update the high score:

if <(score) < (highscore)>
set [highscore v] to (score)
end

Sally456 wrote:

I need the process the be something like the below format:
1. Do something … etc.
2. Do something … etc.
3. If …
3.1 Repeat until …
3.1.1 Do something … etc.

Also I have no idea what this means. Do you mind explaining?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#9 2012-06-12 02:32:40

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Really struggling!!!!!!!

I think I understand what you mean, I made something like this for my game, ghost game.

Do you want a score variable that shows how many moves the current player has done and a list that shows the highest score, then if they beat the level with a better score, it replaces the highest scoring player with there name?

Either look at the high score scripts in http://scratch.mit.edu/projects/gamesman12/2421546 (the scripts are a bit messy in that game.) Or I could post on here the script i used after school.

( The script I used might not be right, I'm not great at scratch XD )

EDIT:
Have a variable called, (high score) Or something like it.
Then make a variable called (Score).
Make a list called, (High scores list).


when gf clicked
if < (A move is taken) >
change (Score) by 1
When i receive (Level Complete)
If < (score) (is bigger than) High Score >
Set (high score) to (score)
Ask (what is your name?) and wait
Set (current player) to answer
replace (1) of (high scores list) to join [(current player) and (high score)] 
I made this, http://scratch.mit.edu/projects/gamesman12/2605493. It is a demo of the high score list. It could help.

Sorry. It was allot harder to explain than i thought, also my scratchblocks failed allot. I hope it is what u need, although i'm not sure if it is.

Last edited by gamesman12 (2012-06-12 11:52:53)

Offline

 

Board footer