Learn › Godot 3D Beginner

Lesson 3 of 6 · About 5 min

Characters made of parts

Your hero is made of boxes, balls and cylinders, and can be swapped for another.

The robot walks to the clock tower in Sunny Valley.

Every character is a list of boxes, balls and cylinders. Swap the hero for another one already in the game.

Parts lists

The hero is a row of HEROES, made of parts: "b" a box, "s" a ball, "c" a cylinder or cone. Each part has a size, a position in metres (feet at y 0, facing forward) and a colour. The legs and arms are listed apart from the body, because the game swings them as the character walks.

The villagers and animals are built the same way, in FOLK_LOOK and ANIMAL_LOOK.

Several heroes, one choice

HEROES already holds more than one character: an explorer, a robot and a cat. HERO names the one the player walks as. You can also put a model made in Shiny Gen's 3D editor in its place, or ask the AI for a new row.

Walk as the robot

In the session you will switch the hero to the robot.

Sunny Valley with the robot as the hero, and the AI's reply in the chat.
Switch the hero

Try it yourself

In the app this lesson opens a real game for you, with a guide that walks you through these steps:

  1. HERO names a row of HEROES. Today it is the explorer.
  2. Let me walk as the robot instead of the explorer.
  3. Walk around to see the robot's legs and arms swing. The camera follows whatever hero is chosen.
Start makingDownload on the App StoreGet it on Google Play