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
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
Offline
yeah...but how can I connect the variables with the list's score...??
Offline
Wait what do you mean list of players... do you mean a score board type thing or what?
Offline
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
Offline
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!
Offline
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.
Offline