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 — throwing things

If you need to shoot or throw objects, you need to launch projectiles constantly. We don't need to place the exact number of bullets for the same number of objects to be destroyed in the scene, without knowing how many bullets our player gets to use. Here is a sample.

  1. To throw an object in the game engine, we will work in two different layers. In the first one, we are going to put an empty object. In the second one, we will put the object to be released. Go to Menu and choose Add | Empty:
    Time for action — throwing things
  2. We select the second layer (shown in red) and create a harpoon that will be our missile. To be safe and to avoid any mistakes, you're going to put a name. Press N, and add the name harpoon:
    Time for action — throwing things
  3. Go to Logic Editor, and choose Always as the value for Sensors, And as the value for Controllers, and Motion as the value for Actuators, to move the harpoon. Type the exact value of the coordinates of the harpoon that you want to move it to. Finally, add Collision as the...