ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Similar documents
Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Brain Game. Introduction. Scratch

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Add in a new ghost sprite, and a suitable stage backdrop.

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

Create Your Own World

Create Your Own World

In this project you ll learn how to code your own musical instruments!

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Step 1 : Earth and Mars Orbit the Sun

You are going to learn how to create a game in which a helicopter scores points by watering flowers in the city.

Lesson 2 Game Basics

Let s start by making a pencil, that can be used to draw on the stage.

Clone Wars. Introduction. Scratch. In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0.

Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Introduction to Turtle Art

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

Let s start by making a pencil that can be used to draw on the stage.

Creating Computer Games

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

Scratch for Beginners Workbook

Game Making Workshop on Scratch

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

G54GAM Lab Session 1

Programming I (mblock)

Flappy Parrot Level 2

Alright! I can feel my limbs again! Magic star web! The Dark Wizard? Who are you again? Nice work! You ve broken the Dark Wizard s spell!

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

Create a Simple Game in Scratch

Ghostbusters. Level. Introduction:

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

Lesson 1 Getting Started. 1. What are the different ways you interact with computers?

Programming with Scratch

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

An Introduction to ScratchJr

pla<orm-style game which you can later add your own levels, powers and characters to. Feel free to improve on my art

Pong Game. Intermediate. LPo v1

Scratch Primary Lesson 5

The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives. Background (Pre-Lab Reading)

Face Swap with Pixlr

a. the costumes tab and costumes panel

Copyright 2017 MakeUseOf. All Rights Reserved.

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

Cleaning: evaluating performance

1hr ACTIVITY GUIDE FOR FAMILIES. Hour of Code

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

STEP-BY-STEP THINGS TO TRY FINISHED? START HERE NEW TO SCRATCH? CREATE YOUR FIRST SCRATCH PROJECT!

Tips for Giving and Receiving Feedback

Computer with Scratch program.

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

VERSION 3.0 WINDOWS USER GUIDE

Quintic Software Tutorial 3

GENERAL GUIDELINES. Conducting informational interviews and job shadowing. This is the priority for responding to a job opening:

Creating a Historical Tour in Alice

Unit 5: What s in a List

A. creating clones. Skills Training 5

Appointment Setter Training

Defend Hong Kong s Technocore

Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008

understanding sensors

Jane says I haven t seen you for ages! which means I haven t seen you for a very long time!

CHM 152 Lab 1: Plotting with Excel updated: May 2011

Explore and Challenge:

Multiple Quests using the ScriptEase II Story System

Excel 2016 Cell referencing and AutoFill

INTERACTING SPRITES MODULE 3: INVESTIGATION 1. Anima9ng Sprites

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

SAMPLE CHAPTER

Trusted Callers List

Creating a texture with Deep Paint 2.0 By Realmling

Recording guidebook This provides information and handy tips on recording vocals and live instruments at home.

An easy user guide AN EASY USER GUIDE

2016 Insurance Office of America Corporate 5k

Let s Talk: Conversation

How to Turn Your WordPress Sidebar from Boring to Soaring Transcript

Microsoft Excel Lab Three (Completed 03/02/18) Transcript by Rev.com. Page 1 of 5

The Audio Setup Wizard in Adobe Connect version 8

BULLYDOWN PHASE ONE BULLETIN BOARD FOCUS GROUP: MODERATOR SCRIPT

Online Courses with the Writers Workshop

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

Pong! The oldest commercially available game in history

2D Platform. Table of Contents

P-39 30M-06/12 (Ripon)

20 QUESTIONS TO HELP YOU DISCOVER WHAT YOU LOVE ABOUT YOURSELF

BLACKBOARD LEARN 9.1: BASIC TRAINING- PART 1

Creating a Maze Game in Tynker

CONGRATULATING FRIENDS FOR DIFFERENT OCCASIONS

This is an excerpt of

DESIGN A SHOOTING STYLE GAME IN FLASH 8

Tutorial on Bunny visi/ng his animal friends - parameters, events for Alice 3

Controlling a Sprite with Ultrasound

Your starter pack learndirect.co.uk

Transcription:

Scratch 1 ChatBot Introduction You are going to learn how to program your own talking robot! Activity Checklist Test your Project Save your Project Follow these INSTRUCTIONS one by one Click on the green flag to TEST your code Make sure to SAVE your work now 1

Step 1: Your chatbot Activity Checklist Before you start making your chatbot, you need to decide on their personality What is their name? Where do they live? Are they happy? serious? funny? shy? friendly? Start a new Scratch project, and delete the cat sprite so that your project is empty You can find the online Scratch editor at jumptocc/scratch-new Choose one of these character sprites, and add them to your project: Choose a backdrop that fits your chatbot s personality Here s an example, although yours doesn t have to look like this: 2

Save your project Step 2: A talking chatbot Now that you have a chatbot with a personality, let s program it to talk to you Activity Checklist Click on your chatbot character, and add this code: Click your chatbot to test it out After you are asked your name, type it into the box along the bottom of the stage 3

Your chatbot simply replies What a lovely name! every time You can personalise your chatbot s reply, by making use of the user s answer Change the chatbot s code, so that it looks like this: To create the last block, you ll need to first drag on a green join block, and drag it on to the say block You can then change the text hello to say Hi, and drag the light blue answer block (from the Sensing section) onto the text world Test out this new program Does it work as you expected? Can you fix any problems that you can see? (Hint: you can try 4

adding in a space somewhere!) It may be that you want to store the user s name in a variable, so that you can use it again later Create a new variable called name If you ve forgotten how to do this, the Balloons project will help you The information that you entered is already stored in a special variable called answer Go to the Sensing group of blocks and click the answer block so that a tick appears The current value in answer should then be shown on the top-left of the stage Once you ve created your new variable, make sure that your chatbot s code looks like this: If you test your program again, you ll notice that the answer is stored in the name variable, and is shown in the top-left of the stage The name variable should now contain the same value as the answer variable If you d rather not see the variables on your stage, you can click the tick next to the variable names in the Scripts tab to hide them 5

Save your project Challenge: More questions Program your chatbot to ask another question Can you store their answer in a variable? Save your project Step 3: Making decisions You can program your chatbot to decide what to do, based on the user s responses Activity Checklist Let s get your chatbot to ask the user a question which has a yes or no answer Here s an example, but you can change the question if you like: 6

Notice that now you ve stored the user s name in a variable, you can use it as much as you like To test this program properly, you ll need to test it twice - once typing no as your answer, and once typing yes You should only get a response from your chatbot if you answer yes The trouble with your chatbot is that it doesn t give a reply if the user answers no You can fix this, by changing the if block to an if/else block, so that your code now looks like this: 7

If you test your code, you ll now see that you get a response when you answer yes or no Your chatbot should reply with That's great to hear! when you answer yes, but will reply with Oh no! if you type anything other than yes ( else means otherwise ) You can put any code inside an if or else block, not just code to make your chatbot speak For example, you can change the chatbot s costume to match the response If you have a look at your chatbot s costumes, you may see that there is more than one (If not, you can always add more yourself!) 8

You can use these costumes as part of your chatbot s response, by adding this code: Test out your program, and you should see your chatbot s face change depending on the answer you give 9

Save your project Challenge: More decisions Program your chatbot to ask another question - something with a yes or no answer Can you make your chatbot respond to the answer? Save your project Step 4: Changing location 10

You can also program your chatbot to change its location Activity Checklist Add another backdrop to your stage, for example the moon backdrop You can now program your chatbot to change location, by adding this code to your chatbot: You also need to make sure that your chatbot is outside when you start talking to it Add this block to the top of your chatbot code: 11

Test your program, and answer yes when asked if you want to go to the moon You should see that the chatbot s location has changed Does your chatbot change location if you type no? What about if you type I'm not sure? You can also add this code inside your if block, to make your chatbot jump up and down 4 times if the answer is yes : 12

Test your code again Does your chatbot jump up and down if you answer yes? Save your project Challenge: Make your own chatbot Use what you ve learnt to finish creating your interactive chatbot Here are some ideas: Once you ve finished making your chatbot, get your friends to have a conversation with it! Do they like your character? Did they spot any problems? Save your project 13