O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

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

Chapter 10. Creating Weaponry: Using Mouse Picking and Intervals

The time has come at last to put armaments on our cycles. We'll be using a system very similar to mouse picking for our aiming, and we'll use intervals to control the fire rate of the weapons. For our big cannons, we'll use a special interval to make the projectiles fly correctly.

The topics we're going to cover are:

  • Using mouse picking
  • Understanding Intervals, Sequences, and Parallels
  • Creating machine guns
  • Implementing the main cannon
  • Adding weapon information to the HUD
  • Handling damage response

Using mouse picking

Mouse picking is a term used when the mouse is used to point at something in the game and select or otherwise interact with it. Many types of games use mouse picking for interaction, ...

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