'Refuse' is one of our new words starting with the letter R that can help save Terra. When this button is clicked, get ready to learn more about this new 'R' and guess if the example corresponds to 'Refuse' or not.
Steps 1️⃣2️⃣3️⃣4️⃣
One 1️⃣
When the game starts we want to position the 'Refuse' button at the top left side of the Stage, just under the 'Rethink' button.
Position the 'Refuse' button
Two 2️⃣
When this sprite is clicked, we want it to ask a true or false question of your choice about the R word 'Rethink' with a squeaky voice.
E.g. : R or Not? Saying ‘no’ to buying the new version of a toy or electronic device that I already have is an example of ‘Refuse.’ Type 't' if true and 'f' if false.
Make sure to ask the player to write 't' for true and 'f' for false, otherwise the code will not be able to recognize the player's answer. For example, 'true', 'True', or 'T' will not be recognized.
Make your 'Refuse' button ask a question
Three 3️⃣
When this sprite is clicked, your question in the last step will appear in a speech bubble and wait for the player to write their answer in a box.
Create a speech bubble for your 'Refuse' button and a space to answer
Four 4️⃣
At this point, it is not you that is scared of this step, but this step is scared of you. You did it twice, you can do it again for the last time!
Big Picture🎨
All the following blocks are placed below the blocks of the last step and they have two tasks in the game:
Determine if the player got the correct answer or not
Reveal the appropriate message depending on the player's answer
You get to choose what messages you want to appear depending on the player's answer!
🏵️ The Sloth, Achievement. In coding, sometimes we reuse similar code instead of writing it all over again.
Go to your code inside the 'Rethink' sprite and drag your code under the last 'when this sprite clicked' block to your 'Refuse' sprite. Now you can see the same code in 'Refuse,' and you can change it to fit your questions and answers there!
Determine the player's answer and reveal the appropriate message
Optional Section - Video Walkthrough 📽️
Look at you, you just finished coding your own quiz game! Take a moment to celebrate your hard work and creativity. If you R looking for something even more spicy, we have an extra mission 🚀