Thursday, September 11, 2014

The Penguin Game


http://scratch.mit.edu/projects/26615210/
Hannah wrote all the dialogue and the basic coding for the sprites to have a conversation. She also figured out how to ask a question and wait for an answer (if it's correct, move on; if not, repeat 3 times). The sound effects were also added in by her.

Max controlled all the movement that the sprites did, along with the background changes and the costumes that each sprite had. He also duplicated the basic coding and made sure that it was repeated in every scene. The end screen was also created by him.

One challenge we as a group overcame was getting the sprites to ask a question and wait for a response. We got over it by using the "ask () and wait" block paired with the "answer" variable (which we figured out by googling). Basically this coding gets the script to tell the sprite to ask a question, wait for an answer, detect if it is right or wrong, then do something else (sound, dialogue, etc.) depending on the outcome. Thanks ScratchWiki!

No comments:

Post a Comment