6
Kodu Tutorial 1 You’re going to learn how to add a character and apply the WHEN/DO talked about in the previous lesson to make the Kodu character move with the key board arrow keys. Step 1 Open Kodu and a new world. Step 2 Click on the object tool, highlighted in the above picture. Then right click on the green piece of land.

fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

Kodu Tutorial 1

You’re going to learn how to add a character and apply the WHEN/DO talked about in the previous lesson to make the Kodu character move with the key board arrow keys.

Step 1

Open Kodu and a new world.

Step 2

Click on the object tool, highlighted in the above picture.

Then right click on the green piece of land.

The list of options will then display on the screen, click the top one that says ‘Add Object’.

Page 2: fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

Step 3

You will then be presented with these options of characters and objects you can add to the world. You need to select the Kodu Character like shown in the picture above.

Kodu will now be in your world but he doesn’t move with the Key board arrow you must program him to do this.

Step 4

Hover over Kodu and then right click, you will be presented with a list of options you need to select ‘Program’

Page 3: fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

You will now be presented with the a screen that looks like the one below, this is where we always program our characters.

Step 5

Applying WHEN/DO syntax to make the character move.

First go to when and click the +.

Then select Keyboard like shown in this picture.

Page 4: fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

Step 6

You have now got the start of your program. This being WHEN keyboard. You need to click the plus next to keyboard again to add what part of the keyboard it is that moves Kodu when pressed. You must select arrows, so that your program looks like this:

You now need to program the DO side of the program, so that the Kodu character moves when the keyboard arrows are pressed.

Click the + next to do and you will be presented with this:

You need to select move.

Well do you have completed the program to make the character move.

Page 5: fkenyon2014.files.wordpress.com  · Web viewApplying WHEN/DO syntax to make the character move. First go to when and click the +. Then select Keyboard like shown in this picture

Step 7

Test you program works.

Press ECS to get out of the programming screen.

Now press the play icon at the bottom of the screen and then use the keyboard arrows to see if Kodu moves.