Post by BusterTheFox on Jan 30, 2012 4:46:24 GMT -8
In this demo, missiles will find their way towards a target. This makes use of X and Y coordinates. As an interesting note, the missiles ALWAYS go for the target object that was created FIRST, even if there are other on the screen. Once that one's gone, the missiles go for the next target in line. Also, notice how the missiles go to the last known location of the target when no target is present. I made it so that the missiles would destroy each other because of that so that they wouldn't stack up.
This is actually pretty fun to play as a game. You can just fire off a bunch of missiles at stuff. I mean, it's awesome! Who doesn't like homing missiles? Well, Star Fox, I guess. Homing missiles are his bane.