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 — animating the hunter

We have learned to animate our character, so we are able to encourage our enemy by creating a simple route to the left and right, like a sentinel on the lookout. If the whale is too close to be seen, we can create a random pursuit until the whale submerges.

  1. Create a scene similar to the one shown in the following screenshot, with a whale, a ship, and two icebergs. Select the ship and set an action moving the ship in the x axis to different values. Insert a keyframe on frame 0, and insert another keyframe on frame 100 with another position.
    Time for action — animating the hunter
  2. Go to Logic Editor and select the ship. Add the Always sensor, And controller, ...

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