When programming a game, you'll often need to do things like find the distance between two points or make an object move. (In fact, very often!) Here are a few examples:
You are going to use trigonometry within ActionScripts to complete these (and many other similar) tasks. While you may not need to do so in every single game, the requirement for trigonometry can pop up in any genre. In this chapter I'll discuss the major uses of trigonometry in Flash and how to apply them. |