Discuss Scratch

vc_tcspa
Scratcher
31 posts

help with how to use sprites to make right and wrong answers

I'm trying to make a visual game where the player has to click on a sprite within a big image and you get a right or wrong answer message. Can anyone help me with the script for that
deck26
Scratcher
1000+ posts

help with how to use sprites to make right and wrong answers

So how do you know if it is wrong or right? Otherwise sounds like a ‘when this sprite clicked’ script.

Last edited by deck26 (Sept. 14, 2019 21:26:05)

vc_tcspa
Scratcher
31 posts

help with how to use sprites to make right and wrong answers

Hi deck26,

In the game I'm asking the player a question and in response they have to click a specific sprite on the backdrop if they clicked on the right sprite the players sprite will say “I found it!” if they are wrong he'll say “I wandered off and I got lost!” How do I build that logic?


Hope you reply soon,

vc_tcspa


deck26
Scratcher
1000+ posts

help with how to use sprites to make right and wrong answers

Set a variable to a value that somehow identifies the right answer. Then when you click on the sprite it can react one way or another according to the value.

So, for example, the variable is set to 10 and the sprites that might be clicked have scripts that check whether the variable has the value it needs for it to be correct.

Powered by DjangoBB