Project: Halloween Pumpkin Hijinks!

Happy Halloween Makers, Hackers, Tinkerers and Harry Potter Fans of all ages!

Chris at Kano here.

This week I've been making my own Halloween Pumpkin themed creations in the Harry Potter Kano Coding Kit.

This one is lots of fun, and really simple to make.

Lets build it together!

Step 1

Start off by clicking the New Creation button (highlighted in green) on your Profile.

This opens up a blank coding window with every object, sound, and spell motion unlocked.

Step 2

Click the background button (highlighted in green) to choose a background.

There are lots of options, but for this creation, the Great Hall (highlighted in green) makes the most sense.

Once you've selected your background, it appears in the Canvas on the right of your screen.

Step 3

We're almost ready to start adding code blocks!

All of the code blocks in the Harry Potter Kano Coding kit are kept in trays on the left of your screen (highlighted in green). Check out the coloured dots next to the trays - those will be important later!

For this creation we'll be using Speaker code blocks to make sounds.

The Speaker parts aren't in the trays on the left yet, so we need to add them in.

To do this, click on the add parts button (highlighted in green).

Then click on Speaker (highlighted in green).

Now you'll be able to find any speaker code blocks you need in the Speaker tray on the left side of your screen (highlighted in green).

Step 4

Time to code!

Here's what we're going to be making.

All of the code blocks are in the trays on the left of your screen. Match the colour of the blocks in the images below with the colour of the dots next to the trays to find the blocks you need!

Step 5

Start by connecting the code blocks below. You'll find the blocks you need in the Events and Objects trays on the left of your screen

This piece of code is telling your computer to create a Pumpkin on screen and set the size of it to 275.

Step 6

The next piece of code removes the Pumpkin, creates a new Carved Pumpkin in its place, set at a size of 225, and then plays a sound effect when you move the wand up.

You'll find the code blocks you need in the Events, Objects, and Speaker trays on the left of your screen (the orange sound effects blocks are also in the Speaker tray!).

Step 7

The third piece of code is activated by the Wingardium Leviosa spell motion.

It hides the wand pointer, and every one frame sets the position and angle of all objects on screen (this could be a Pumpkin, or a Carved Pumpkin) to the position and angle of your Coding Wand.

The blocks you need for this piece of code are in the Events, Control, Objects, and Wand trays on the left of your screen.

Step 8

The Final piece of code restarts your code when you make the Reparo spell motion.

The last two blocks you need can be found in the Events and Control trays.

Step 9

We're done!

Don't forget to Save your creation to Kano World so that everyone can see what you've made.

Click on the save button (highlighted in green).

And then add a name and a description that lets people know what your creation does, and how they can play with it!

I'm really looking forward to seeing your Halloween creations on Kano World.

For now - (Halloween) Mischief Managed!

Chris
Gryffindor