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

#1 2012-01-03 16:53:16

rustynail001
New Scratcher
Registered: 2012-01-01
Posts: 4

Help with 'Lights out' ?

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  smile

Offline

 

#2 2012-01-04 07:47:03

undefeatedgames
Scratcher
Registered: 2011-05-22
Posts: 1000+

Re: Help with 'Lights out' ?

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  smile

This should be moved. I'll help you out.


Please call me udg or bearsfan, not undefeated.
Scratch and Misc.! Click here for Misc.'s Successorhttps://lh3.googleusercontent.com/-jkhes3yzmQk/T7G_BnxT9xI/AAAAAAAABYI/xhoN1Jk2M08/s513/sigp1.gif

Offline

 

#3 2012-01-04 09:03:07

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Help with 'Lights out' ?

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?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2012-01-04 14:32:01

rustynail001
New Scratcher
Registered: 2012-01-01
Posts: 4

Re: Help with 'Lights out' ?

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!  smile

Offline

 

#5 2012-01-06 14:05:44

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Help with 'Lights out' ?

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!  smile

Like an arcade game? Uhh.

I dunno.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#6 2012-01-11 11:48:31

robertda
New Scratcher
Registered: 2012-01-09
Posts: 2

Re: Help with 'Lights out' ?

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

 

#7 2012-01-15 03:59:09

jukyter
Scratcher
Registered: 2009-12-06
Posts: 1000+

Re: Help with 'Lights out' ?

If variable score is < variable top score change top score by variable score.
I don't know if that could be right, but yeah.


cause a bird and a fish could fall in love/but where would they live?

Offline

 

#8 2012-01-21 07:16:38

rustynail001
New Scratcher
Registered: 2012-01-01
Posts: 4

Re: Help with 'Lights out' ?

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  smile

Offline

 

#9 2012-01-23 16:19:28

rustynail001
New Scratcher
Registered: 2012-01-01
Posts: 4

Re: Help with 'Lights out' ?

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

 

#10 2012-01-24 09:44:41

harlequyn2002
New Scratcher
Registered: 2012-01-23
Posts: 1

Re: Help with 'Lights out' ?

Sorry but I wouldn't reply to this as it is an Open University question on one of the assignments.

Offline

 

Board footer