Building the robot wireframe

In this section, we will explore various cool and new features in the costume editor. We will create costumes in the Vector Mode. Vector graphics look much smoother in games, especially in the full-screen mode. Moreover, vector graphics can be reshaped easily. The Vector Mode is very flexible and is my preferred mode of creating costumes.

You may wonder why vector graphics appear smoother than bitmap graphics. It's because in vector, the edges of lines and objects become more transparent gradually, fading into the background or layer behind. This effect is called antialiasing.

Prepare for lift off

We are going to create a robot costume for our player. The first thing I usually do when creating a detailed costume is start from a simple wireframe, then add color and shade.

Let's create the new costumes and a new project by performing the following steps:

  1. To create a new project, navigate to File | New.
  2. Create a new costume by clicking on the Paint new costume icon.
  3. On the Paint Editor page, switch to the vector mode by clicking on the Convert to vector button.

The Vector Mode tools include Select, Reshape, Pencil, Line, Rectangle, Oval, Paint Bucket, Stamper, Layer, and others. We will demonstrate the use of some of these tools.

Engage thrusters

Click on the costume tab of the new sprite and then click on the black color to change the primary shade to black. Next, create the parts for the robot costumes using the following steps:

Next, create the parts for the robot costumes using the following steps:

  1. Click on the Oval tool button.
  2. Click and drag on it to make a circle to be the head and a small oval to be one ear.
  3. Click on the Stamper tool button and click on the ear to make a copy.
  4. Drag the copied ear away.
  5. Click on the Select tool button.
  6. Position both ears to the head, as shown in the following screenshot:
Engage thrusters

To create the robot's torso, perform the following steps:

  1. Click on the Rectangle tool button.
  2. Drag it to make three rectangles to be the neck, the upper body, and the lower body.
  3. Next, click on the Reshape tool button.
  4. Shape the upper body by moving the vertices.
  5. To shape the lower body, still in reshaping mode, click on the lines to add one vertex on each side. To remove a vertex, simply click on it.
  6. Move the vertices to shape the lower body like a diamond.
  7. Click on the Select tool button.
  8. Move the three pieces to form the torso, as shown in the following screenshot:
Engage thrusters

To create arms and legs, perform the following steps:

  1. First, use the Rectangle tool to make three rectangles; one for an arm, one for a leg, and one for the feet; then use the Ellipse tool to create a circle to be a joint.
  2. Then, click on the Reshape tool button.
  3. Click on each vertex to move it and adjust each shape.
  4. Next, select all the parts, duplicate (Ctrl + C and then Ctrl + V), and flip horizontally.
  5. Repeat for all other symmetric parts. Then, add each part to the body as shown in the following screenshot:
    Engage thrusters
  6. Add eyes and hands using the Rectangle, Ellipse, Reshape, and Select tool with the technique covered in previous steps. Refer to the following screenshot:
    Engage thrusters

You may want to resize the whole costume. To do so, perform the following steps:

  1. Click on the Select tool button, and draw a dotted blue rectangle around the whole costume.
  2. The selected costume should be inside a white box.
  3. Click on any of the corners of the white box to see a double-arrowed icon for resizing.
  4. Then, adjust the size of your choice, as shown in the following screenshot:
    Engage thrusters

Objective complete – mini debriefing

There, we did it! We have created a robot wireframe, complete with head, arms, legs, feet, and joints. In the next section, we will kick it up a notch by adding color.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.167.183