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

#1 2012-11-24 05:30:16

Ariel_1990
New Scratcher
Registered: 2012-11-24
Posts: 2

Please help....

Hello everybody...!!
I am working on a game about children fellings .
So, in my screen , appears the children with different emotions and there 2 buttons , one red (for the wrong answer) and one green (for the right answer) and the player have to recognize what is the emotinon that shows up everytime and if it is right the teacher press the green button or else the red button. I want to make a score for the right and wrong answers...do you know how I can do this ?? And how can I connect it with my first list which includes the names of the players in the begging of the game....
If you know something it will be useful for me..! thank you!

Offline

 

#2 2012-11-24 11:15:27

dreamtester
New Scratcher
Registered: 2012-11-09
Posts: 7

Re: Please help....

Ariel_1990 wrote:

Hello everybody...!!
I am working on a game about children fellings .
So, in my screen , appears the children with different emotions and there 2 buttons , one red (for the wrong answer) and one green (for the right answer) and the player have to recognize what is the emotinon that shows up everytime and if it is right the teacher press the green button or else the red button. I want to make a score for the right and wrong answers...do you know how I can do this ?? And how can I connect it with my first list which includes the names of the players in the begging of the game....
If you know something it will be useful for me..! thank you!

for the right and wrong answers make 2 variables call one right/correct and one wrong/incorrect and make them change when they are right/wrong hope this helps  smile

Offline

 

#3 2012-11-26 03:32:11

Ariel_1990
New Scratcher
Registered: 2012-11-24
Posts: 2

Re: Please help....

yeah...but how can I connect the variables with the list's score...??

Offline

 

#4 2012-11-26 20:32:49

tree-hugger
Scratcher
Registered: 2011-11-19
Posts: 38

Re: Please help....

Wait what do you mean list of players... do you mean a score board type thing or what?


http://oi48.tinypic.com/1y7tjr.jpghttp://oi50.tinypic.com/28tb34j.jpg                     http://oi50.tinypic.com/21c6v74.jpg                    ...ya, I'm weird... REAL weird...
BITBOT ALL THE WAY!!!     Only the WEIRDEST games!     (that's just  a Tree-Hugger thing)

Offline

 

#5 2012-11-26 20:38:16

tree-hugger
Scratcher
Registered: 2011-11-19
Posts: 38

Re: Please help....

Are you adding the score to the list? Heres how you do that:
make a variable called "score" and record the player's score with it.
Then when the game is over make a "game over" broadcast
To add the variable to the list do this:

when I receive [game over v]
add (score) to [list v]
If thats useful tell me, if not please explain how the list works. Then I can help  smile


http://oi48.tinypic.com/1y7tjr.jpghttp://oi50.tinypic.com/28tb34j.jpg                     http://oi50.tinypic.com/21c6v74.jpg                    ...ya, I'm weird... REAL weird...
BITBOT ALL THE WAY!!!     Only the WEIRDEST games!     (that's just  a Tree-Hugger thing)

Offline

 

#6 2012-11-26 20:46:56

CanadianGeorge
Scratcher
Registered: 2012-11-21
Posts: 100+

Re: Please help....

try this script:

forever if <(item (count variable)) = correct>
change [correct answers v] by (1)
else
change [incorrect answers v] by (1)
(end of if/else statement)
change [count variable v] by (1)

in this script, "count variable" refers to a variable you make to indicate the # of the item in the list you are looking at.
Hope this helps!  smile


smile   neutral   sad   big_smile   yikes   wink   hmm   tongue   lol   mad   roll   cool
"You're weird" -My Sister

Offline

 

#7 2012-11-26 20:50:26

CanadianGeorge
Scratcher
Registered: 2012-11-21
Posts: 100+

Re: Please help....

Also, to connect the players to it, what you could do is replace the two score variables with lists and simply use the list as multiple variables, if that's what you meant in your post.


smile   neutral   sad   big_smile   yikes   wink   hmm   tongue   lol   mad   roll   cool
"You're weird" -My Sister

Offline

 

Board footer