Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
This video will describe
how to make your characters talk to each other
when they touch.
It's a little harder than most add-ons
because it won't tell you exactly where to put the blocks.
Use your courage and persistence!
Computer scientists rarely get things right
on their first try.
Click on one of the androids.
To make it check if it is touching the other android,
use an If () Then block
and a touching condition.
To keep checking over and over again, use a loop.
To start checking from the beginning of the game,
place a when flag clicked block above the loop.
Inside of the If () Then,
make the blue android react any way you like.
One of the cool things about computer science
is it lets you be in control of your own programs.
You get to decide what the android does.
You can make it say yellow to the other android
using the say block,
make it wave by changing its costume,
or anything else you come up with.
Now it's your turn.
Program one android to respond when it's touching the other
using the when flag clicked, If () Then,
touching, and forever blocks,
as well as any other block you used
to create the android's reaction.