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 — moving the blocks of ice

I do not think there are many doors in the Arctic, and fewer under water. Let's substitute the doors for blocks of ice. These will move in some way to prevent the whale access elsewhere. To do this, we must finish the previous example.

Before you begin, we need to move the trap iceberg when the whale approaches or leaves it. The icebergs that blocked the way will remain fixed in their positions.

  1. To create a new file, delete the box, and then click on File | Append to select your library (the whale and three icebergs) for our exercise, as shown in the following image. Rename the middle iceberg to iceberg_son, which will serve as the trapdoor.
    Time for action — moving the blocks of ice

    Tip

    Scale the middle iceberg down so that it is smaller than the rest. This will be used as the trap door.

  2. Change the window from Logic Editor to Graph Editor, and move the door iceberg a little bit to the left, as shown in the following screenshot:
    Time for action — moving the blocks of ice
  3. Go to Menu, choose Key, and select Insert Keyframe...