BBC micro:bit
Shaking The Tree


It is possible to detect when the micro:bit is being shaken in your Kodu worlds.

A Simple World

Start Kodu Game Lab and make a new world to act as a test environment for you.

Click on the character/object button at the bottom of the screen to add a Kodu character to the world,

Kodu World

Click on the character to be move it into position somewhere over the terrain of your world. Use the left mouse button to drag the character into position. Right mouse click to write the program for the character.

This program gets Kodu to say a number from 1 to 6 when the micro:bit is shaken.

Kodu World

The say part of the statement is written like this,

Kodu World


You can try all sorts of actions to carry out when the micro:bit is shaken. Carry on experimenting with this by choosing different tiles for the statement.