Author: Colin Price

Story-Writing-Coding
With the WeeBee Engine
Book 2

My First Name My Memory Stick

Working With Props

Load

File > Open > scene3.cde

1. Choose any WeeBee and add to the scene. I will choose Jig
add(jig,10,10);

2. Add a prop to the scene. I will chose myant
add(myant,70,20);

3. Now get Jig to fly to my ant
jig.flyto(myant);

4. Now find out what this does
jig.pickup(myant);

5. Finally find out what this does
jig.flyto(10,10);
jig.putdown(myant);

Save

Collecting Props

Continue adding code

1. Choose another prop and add it to the right of the scene

2. Now make Jig go over, pick up the prop, return to his home and put it down. (You will need 4 lines of code)

3. Choose a suitable prop and place it in the sky.

4. Now make Jig go over, pick up the prop, return to his home and put it down. (You will need 4 lines of code)

Save

Flipping and Squishing

Load

File > Open > scene4.cde

1. Choose any WeeBee and add to the scene. I will choose Flup
add(flup,30,10);

2. Let’s make flup rest a while then do a flip. Add these lines of code flup.rest();
flup.flipV();

3. Now add code to make Flup rest a while and then return to normal.

4. Now find out what this does
flup.squishH(0.5);

5. Experiment with the parameter 0.5. Make it smaller (0.1) or very small (0.01). Try making it larger 1, 2, 3, ...

Save

More squishing

Continue adding code

1 Change your squish parameter so that flup does not squish.

2. Now find out what this does
flup.squishV(0.5)

3. Now get flup to squish into a very thin line and then fly out of the scene to the right.

Save

Things Flying Apart

Load

File > Open > scene5.cde

1. There are several props in the scene. Choose one prop, and add a line of code to make it move out of the scene. HINT: You can find out which props are in the scene by reading the code!

2. Now choose a second prop and make it move out of the scene

3. Now make all the props move out of the scene

4. Can you get one of your props to return into the scene?

Save

Changing Scenes

Load

File > Open > scene6.cde

1. Put an actor into the scene and make it jump two or three times.

2. Here’s how to change the scene. Add this code after the jumps
setScene(“pond”);

3. Now make your character jump two or three times.

4 Now change the scene again and make your character do some more jumps.

Save

A Journey

Load

File > Open > scene7.cde

Here you are going to code a short story. A character goes on a journey.
The story should have several scenes, and in each scene the character should do something different.
Perhaps they will just fly around looking at the scenery. Or you could add props and get the character to move them around.
The character could eat something and get larger and larger and larger.

Save

What I have learned so far

1. I can get a character to fly to a prop

2. I can get a character to pick up a prop

3. I can get a character to put down a prop

4. I can make my character flip upside down

5. I can make my character become very thin

6 I can make my character become long and thin

7. I can change scenes

#

#