This tutorial will show you how you can create heat-seeking missiles using ActionScript. We will be using the explosion code from the previous tutorial, which I recommend you read. In the example below, clicking the mouse creates a missile which seeks the target. The target is dragged by the mouse. Upon reaching the target, the missile explodes. No matter where the target is moved, the missile will seek it out relentlessly.
You don’t have to understand how the explosion code works in this tutorial, although a good knowledge of trigonometry will help.
(Click with the mouse anywhere inside the movie to create a new missile.)
discuss this topic to forum
