Author: Colin Price

Story-Writing-Coding
With the WeeBee Engine
Book 3

My First Name My Memory Stick

Two Characters

Load

File > Open > scene8.cde

1. Choose two WeeBees and add them to your scene. I will choose Grog and Pip. Place them on the ground at the left.

2. Let’s get both jumping together
grog.jump();
pip.jump();

3. Now Grog jumps again while Pip rests
grog.jump();
pip.rest();

4. Now add two lines of code to make Grog rest while Pip jumps

5. Add two lines of code to make both characters rest.

6. Now get one character to say “All done!”

Save

Two Characters feel unhappy

Continue adding code

1. Grog and Pip want to meet up. Add two lines of code like this
grog.flyto(75,10);
pip.flyto(75,10);

2. Add two lines of code to make Pip fly off somewhere while Grog does not move.

3. Add two lines of code to make Grog and Pip feel sad at the same time.

4. Now add two lines of code to make Pip fly back to Grog while Grog rests

4. Now add two lines of code to make both Pip and Grog feel happy.

Save

Sports Day The High Jump

Load

File > Open > scene9.cde

Here two WeeBees will jump over the barrels in the middle of the scene. They will take turns or jump together.

1. Choose two WeeBees. Place one at the left of the scene and one at the right of the scene. I chose Pip and Flup.

2. Now write two lines of code to make Pip jump over the
barrels while Flup waits.

3. Add two lines of code so Flup jumps over the barrels while Pip looks on.

4. Now add two lines of code to make both WeeBees take a jump over the barrels together.

Save

The Collectors

Load

File > Open > scene10.cde

Here two WeeBees like collecting objects (props). They move around the scene collecting their objects one at a time in turns.

1. Choose two WeeBees. Place one at the left of the scene and one at the right of the scene. I chose Flup and Drax.

2. Now choose two props for each WeeBee to pick up and place them in the scene.

Remember to add code in pairs of lines.

3. Add code so that Flup picks up his first prop while Drax waits. Then Drax picks up his first prop while Flup waits. Then Flup picks up his second prop and so on.

Save

Strange Behaviour

Load

File > Open > scene11.cde

Remember to add code in pairs of lines.

Choose two WeeBees and place them where you like.
I will choose Grog and Pip

Now write code to make the following happen. Remember to use rests.
Grog flies to Pip.
Then Pip shrinks
Then Pip says “What have you done to me?”
Then Grog says “Aha! I am a magician!”
Then Grog flies away
Then he says “Expelliarmus”
Then Pip grows to her normal size.
Then Pip says “Wow, that was awesome”
Then both fly out of the scene together.

Save

What I have learned so far

1. I can make two characters do something at the same time.

2. I can make one character do something and then a second character do something else

3. I can write pairs of lines of code

4. I understand why I must write pairs of lines of code when there are two characters.

#

#