Book Image

Blender Game Engine: Beginner's Guide

Book Image

Blender Game Engine: Beginner's Guide

Overview of this book

Blender Game Engine is the part of the Blender 3D editor used to create actual 3D video games. It's the ideal entry level game development environment because you don't even need to learn to program. Create a complete game using Bender's innovative logic bricks."Blender Game Engine: Beginner's Guide" is the ideal introduction to game development. Using only logic bricks, the reader will create a complete game in Blender. By the end of the book the reader will be able to use their skills to create their own 3D games.
Table of Contents (11 chapters)
10
Index

Time for action — counting

The counters are useful for getting some extra points, a score in the game, and certainly, it keeps a track of objects. As an example, if we get three fish, we will grow larger in size. The easiest way is to deal with the food. Let's have a look at how it will work.

We will post our whale and four icebergs. Each time you pass one of them, you add a point. When you get four points earned, you can change the look.

  1. Choose File | Append, and select the whale. Press Link and Append from the Library button to add to the scene. Follow the the same step to add the four icebergs, as shown in the following screenshot:
    Time for action — counting

    If you see the Append option turned off, be sure that you are not in Edit Mode. In 3D View, change to Object Mode or press the Tab button to turn on some of the items in the drop-down list.

  2. Select the player with Physics Type as Dynamic, check Actor, and add a Game Property called NumIcebP for Add Game Property (where NumIcebP is the number of icebergs...