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.
Add a winning condition to your game.
Add a sprite that causes you to lose points if you or your friend touches it.
Learn how to design the sprites.
Add sound to your project.
Make the sprites react when they touch each other.
Sign in to save your project and track your progress.