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 — 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, ...

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