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 — making the enemy follow a path

Use a plane to build a navigation mesh, where the boat does seem to surround the whale.

  1. Choose Add | Mesh | Plane, and click on Top 3Dview editor. Press S to scale the plane:
    Time for action — making the enemy follow a path
  2. Press the Tab key to enter into the Edit mode, and subdivide the faces of the plane twice, as seen in the following screesnhot. Delete some faces around the icebergs, as our boat doesn't cross them:
    Time for action — making the enemy follow a path
  3. Press the Build navigation mesh button on the Scene tab in the Properties panel, as shown in the following image. The plane will be converted into a rainbow:
    Time for action — making the enemy follow a path
  4. Go to Logic Editor, and choose Always as the value for Sensors. Add And for Controllers, and Add for Actuators, as shown in the following image:
    Time for action — making the enemy follow a path
  5. Connect them and choose another Actuator called Steering. The Behavior for Steering must be Path following. Target Object will be whale, and select Navmesh for Navigation Me.
  6. If you want to see how the boat goes to the whale, select Visualize (a red line is seen when...