Well it does what you asked
What you want is pathfinding. That's a bit more complex than the rule you described.
Well, pathfinding can be a bit hard on CPU maybe you can avoid using that by rephrasing the rule of your little ship. Basically what you want is not comparing Y, but comparing the relative position of the ball in object space. As if you rotate coordinates to align with the ship.
And it's really more complicated.
Though, I know how to do that. Hmmmm ok I'll do a capx.
There ya go
You will need to avoid placing balls to close together, the missiles have to have enough room to go betwen them (well they behave unexpectedely well if they get stuck they wiggle a bit and then turn around but the wiggling isn't really cool)Yann2011-12-30 15:09:29