O'Reilly logo

Blender Game Engine Beginner's Guide by Victor Kuller Bacone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — decreasing life

Let's start by creating a simple life bar (two bars). Remember that the life bar is green or blue, and when you lose life the bar becomes red. Try to create a rectangle of the color you want, create another similar rectangle a bit away in the same front axis, and change its color to red.

  1. Make a rectangle and duplicate it. Move to the z axis (press Z to snap it), and choose the color for each one, just as shown in the following screenshot:
    Time for action — decreasing life

    Tip

    Put the cursor on the center-left edge of the rectangle, as shown in the previous screenshot.

  2. Press I (I not L) to insert a key in the first frame, and another again in the hundredth ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required