Kodu Game Lab Object Programming Page

Here is where I will keep track of how I programmed my objects in certain worlds for easy access. It will include the shape, color, programming, and any settings that were altered.

  • Advance Wars-Style HQ (Red)
  • Object: Castle
  • Color: Red
  • Page 1
  • (1) DO [play, {music of your choice. I used funk}]
  • (2) DO [glow, off]
  • (3) DO [see, {unit}, red, close by] -> DO [glow, red]
  • (4) DO [see, {unit}, red, close by] -> DO [heal, 2 points, it]
  • (5) DO [see, {unit}, red, close by, none] -> DO [glow, off]
  • (6) WHEN [bump, blue, kodu] -> DO [switch, page 2]
  • Page 2
  • (1) DO [glow, blue]
  • (2) WHEN [see, kodu, blue, close by, none] -> DO [switch, page 1]
  • (3) WHEN [timer, 20 seconds] -> DO [switch, page 3]
  • Page 3
  • (1) DO [color, blue]
  • (2) DO [game end]
  • Edited settings:
  • Invulnerable

To do the same for the enemy HQ, remove the tune command from page 1. Whatever is red, make blue, and vice versa. Instead of [game end] for page 3, make it [game win].

  • Advance Wars-Style factory (Red)
  • Object: Factory
  • Color: Red
  • Page 1
  • (1) WHEN [hear, {any sound}, close by] -> DO [create, {unit}, once]
  • (2) WHEN [bump, kodu, blue] -> DO [switch, page 2]
  • (3) DO [glow, off]
  • (4) DO [color, red]
  • Page 2
  • (1) DO [glow, blue]
  • (2) WHEN [timer, 10 seconds] -> DO [switch, page 3]
  • (3) WHEN [see, kodu, blue, close by, none] -> DO [switch, page 1]
  • Page 3
  • (1) DO [ glow, off]
  • (2) DO [color, blue]
  • (3) WHEN [ timer, {your time here}] -> DO [switch, page 4]
  • (4) WHEN [bump, kodu, red] -> DO [switch, page 5]
  • Page 4
  • (1) DO [create, {unit}, once]
  • (2) WHEN [timer, one second] -> DO [switch, page 3]
  • (3) WHEN [bump, kodu, red] -> DO [switch, page 5]
  • Page 5
  • (1) DO [glow, red]
  • (2) WHEN [timer, 10 seconds] -> DO [switch, page 1]
  • (3) WHEN [see, kodu, red, close by, none] -> DO [switch, page 3]
  • Edited settings:
  • Invulnerable

For enemy factories, page 3 becomes page 1. Page 4 becomes page 2. Page 5 becomes page 3. Page 1 becomes page 4. Page 2 becomes page 4. Feel free to experiment with deploying different units from the same factory.

  • Advance Wars-Style City (Neutral)
  • Object: Hut
  • Color: White
  • Page 1
  • (1) WHEN [bump, kodu, red] -> DO [switch, page 2]
  • (2) WHEN [bump, kodu, blue] -> DO [swtich, page 4]
  • (3) DO [glow, off]
  • Page 2
  • (1) DO [glow, red]
  • (2) WHEN [timer, 10 seconds] -> DO [switch, page 3]
  • (3) WHEN [see, kodu, red, none, close by] -> DO [switch, page 1]
  • Page 3
  • (1) DO [color, red]
  • (2) WHEN [see, {unit}, red, close by] -> DO [glow, red]
  • (3) WHEN [see, {unit}, red, close by] -> DO [heal, 1 point, it]
  • (4) WHEN [see, {unit}, red, close by, none] -> DO [glow, off]
  • (5) WHEN [bump, kodu, blue] -> DO [switch, page 4]
  • Page 4
  • (1) DO [glow, blue]
  • (2) WHEN [timer, 10 seconds] -> DO [switch, page 5]
  • (3) WHEN [see, kodu, blue, none, close by] -> DO [switch, page 1]
  • Page 5
  • (1) DO [color, blue]
  • (2) WHEN [see, {unit}, blue, close by] -> DO [glow, blue]
  • (3) WHEN [see, {unit}, blue, close by] -> DO [heal, 1 point, it]
  • (4) WHEN [see, {unit}, blue, close by, none] -> DO [glow, off]
  • (5) WHEN [bump, kodu, blue] -> DO [switch, page 2]
  • Edited settings:
  • Invulnerable

For huts being part of a faction at the start, page 1 isn’t needed. For neutral huts, if an opposing faction fails in an attempt to capture the property after the hut has been claimed, the faction that controls the property must stay there for 10 seconds to reactivate the healing capability.

  • Commander Kodu
  • Object: Kodu
  • Color: Doesn’t matter, so long as it is different from the Kodu you’re commanding.
  • Page 1
  • (1) WHEN [gamepad, L stick] -> DO [move, forward]
  • (2) WHEN [gamepad, {A, X, Y, or B} button] -> DO [play, {sound effect}, once]*
  • (3) WHEN [gamepad, left trigger] -> DO [play, {sound effect}]**
  • Edited settings:
  • Speed multiplier = 2.0
  • Invulnerable

*This is to assign units to deploy to a certain sound effect near factories. EXAMPLE: Kodu = WHEN [gamepad, A button] -> DO [play, whistle, once] and Factory = WHEN [hear, whistle, close by] -> DO [create, Kodu 1, once]

**This command is so that units who hear this sound effect follow you as long as you hold down the button.

This Kodu does not attack the enemy, nor does the enemy attack it. It, however, commands units and can survey the battlefield. Make sure it doesn’t stray too far, though. Enemy units could capture your territory while you’re not looking.

Advertisements

One Response to “Kodu Game Lab Object Programming Page”

  1. psychonude Says:

    Hey, thanks for the code. I was looking for tutorials on this, and this was just what I needed!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: