Hi all
I'm currently working on a version of the classic lights out game (I'm pretty new to this game by the way!). I'd like to include not just a score system that records the score, but one that records best scores for multiple players at every level of difficulty. Anyone beating the current best score will be prompted to enter their initials which then replaces the current one. These score don't really have be kept after you've finished playing.
Any suggestions will be really appreciated
Offline
rustynail001 wrote:
Hi all
I'm currently working on a version of the classic lights out game (I'm pretty new to this game by the way!). I'd like to include not just a score system that records the score, but one that records best scores for multiple players at every level of difficulty. Anyone beating the current best score will be prompted to enter their initials which then replaces the current one. These score don't really have be kept after you've finished playing.
Any suggestions will be really appreciated
This should be moved. I'll help you out.
Offline
Running online, there's no way to really keep high scores between project loads as Scratch doesn't give you any persistent variables or access to a database.
Running locally on your own computer, you could store the high score in a variable and it will remain persistent unless you clear it. You could save the project before closing it and it would pick up where it left off the next time you load it. You could also work with lists as well.
However, if you just want to keep track of the high score for multiple plays during one single load and run of the project, it could easily be done online or off. Just store it in a variable and replace the variable when somebody exceeds it's value.
So what kind of help are you looking for?
Offline
Hi
I'm not really looking to do an online version, just an offline version. Also I'd like to display in a list all the top scores!
Almost finished the first rough version is there any way of displaying it ( new to this site!)?
thanks for your advice. The kind of help I'm looking for basically is its actual construction but at the moment I'm getting fustration!
Offline
rustynail001 wrote:
Hi
I'm not really looking to do an online version, just an offline version. Also I'd like to display in a list all the top scores!
Almost finished the first rough version is there any way of displaying it ( new to this site!)?
thanks for your advice. The kind of help I'm looking for basically is its actual construction but at the moment I'm getting fustration!
Like an arcade game? Uhh.
I dunno.
Offline
Paddle2See wrote:
Running online, there's no way to really keep high scores between project loads as Scratch doesn't give you any persistent variables or access to a database.
Running locally on your own computer, you could store the high score in a variable and it will remain persistent unless you clear it. You could save the project before closing it and it would pick up where it left off the next time you load it. You could also work with lists as well.
However, if you just want to keep track of the high score for multiple plays during one single load and run of the project, it could easily be done online or off. Just store it in a variable and replace the variable when somebody exceeds it's value.
So what kind of help are you looking for?
I kinda like this idea but how would you go about creating a variable to hold the score and then replace the old score thats been exceeded. Also very new to Scratch!
Offline
Thanks.
I'm scrapping the idea of an online version but just keeping two lists of scores on display for both current score and best score. 'jukyter' I'm struggling a little with the structure on replacing best score with current score any clarifications greatly appreciated
Offline
robertda wrote:
Paddle2See wrote:
Running online, there's no way to really keep high scores between project loads as Scratch doesn't give you any persistent variables or access to a database.
Running locally on your own computer, you could store the high score in a variable and it will remain persistent unless you clear it. You could save the project before closing it and it would pick up where it left off the next time you load it. You could also work with lists as well.
However, if you just want to keep track of the high score for multiple plays during one single load and run of the project, it could easily be done online or off. Just store it in a variable and replace the variable when somebody exceeds it's value.
So what kind of help are you looking for?I kinda like this idea but how would you go about creating a variable to hold the score and then replace the old score thats been exceeded. Also very new to Scratch!
How about a simple list that holds best scores?
Offline
Sorry but I wouldn't reply to this as it is an Open University question on one of the assignments.
Offline