Presentation is loading. Please wait.

Presentation is loading. Please wait.

Spanish Mad libs with Scratch

Similar presentations


Presentation on theme: "Spanish Mad libs with Scratch"— Presentation transcript:

1 Spanish Mad libs with Scratch

2 Mad Libs Concepts Ask the player for words Store the words
Display the story Variable – something that changes Strings are groups of characters

3 What’s a variable? Give me an example?
A container to store a value Give me an example? In shapes drawing program the number of sides in the shape might be a variable Or length of side

4 What’s a STRING? Give me an example? Name in a Leader board
A type of data or value made of words, letters, spaces or numbers A group of characters You can join two strings together You need to add spacing between strings Give me an example? Name in a Leader board Mad Libs words Title of a track, film, book

5 Project Description We will ask the user some questions and then create a "madlib" from the answers

6 Big Picture Delete the cat sprite Choose a sprite from a file
Do set-up Make all the variables Ask user a question Set answer to a the variable Duplicate the script for the number of variable in your story Create a string to say the result Delete the cat sprite Choose a sprite from a file Program the sprite Create a script

7 Creating a Variable Go to the Data category Click on "Make a Variable"
Give your variable a unique name For example verb1, food, etc. When you create a list you get new tiles (blocks) that help you work with the list. The list will automatically be displayed. You can turn this off by unchecking the checkbox.

8 Program the Sprite We want to ask the user a question for each changing word in your story Name Favorite color Favorite Animal Use the "ask and wait" tile in the Sensing category

9 Saving the answers Each time we ask a question the answer is put in the answer tile – in Sensing To save the answers let's add them to a variable

10 Set-up and ask questions
When the green flag is clicked Hide variable answers Show the plain background Ask each question Set each answer to the variable

11 Display your MAD Lib with ANSWERS
Create a new Background Type the story leave spaces for words the user gives Use Vector Mode Using multiple joins You can use more than one join First drag out one join. Then add another in the second slot. Then add a third in the 2nd slot of the 2nd. Then drag out the item at position in list.

12 Displaying the MadLib You can join two strings together
Using join tile from Operators You can get an item from a position in the list

13 Using variables with strings
You can make a variable Like sentence You can set the variable to the result of a join Remember to include spaces

14 Final Code

15 Senor Salzman’s Scratch SPANISH Mad Libs Example

16 Extra time Change cat sprite
Make the cat glide and speak Click the cat see the x,y Go to coordinate graph x,y Change the sprite costume Or right click on the cat and select delete

17 Extra time Choose a new Sprite
Select the choose a sprite from a file Go to the People category Pick a sprite to use


Download ppt "Spanish Mad libs with Scratch"

Similar presentations


Ads by Google