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
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
when gf clicked forever if <a move is taken> // how would you define a move? change [moves v] by 1 end
Offline
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.
Offline
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.
Offline
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?
Offline
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.
Last edited by gamesman12 (2012-06-12 11:52:53)
Offline