Challenge 5 - Add a Question Sprite
Check out the video opposite for ways to create your maze.
- Click on the first Fact Sprite.
- Inside the IF Condition add an instruction to Broadcast a Message
- Add a new message and call this Q1
- Add a new Sprite from the library for your question (this could be the letter Q)
- Shrink the letter and position it in the maze
- Add an algorithm so when the Green Flag is pressed the question sprite will go to the correct position, but will be invisible.
- Start a new Algorithm so when the message it received do something
- When the message is received, show the Question Sprite
- Add a Forever loop with an IF condition that will ask the following question: IF the Question Sprite touches the Cat, THEN ask a the player a question and wait. IF the player answers the question correctly THEN say "Correct" for 2 seconds, hide the Question Sprite, ELSE say "WRONG!" for 2 seconds and hide the Question Sprite.
Play your game and test it.