Ok, now if you have played galaga or galaxian; sometimes the enemy decides to fly "right at you" - or more like, right where you were when the enemy sought to launch.
check this out:

caption: Path1

caption: Path2
As you can see.. if I wanted the enemy to follow the blue line in path2, how would I program that? X and Y checks dont seem to be enough. For example.. If the enemy reaches the target X before the enemy's Y is at the bottom, then the enemy goes straight down.. making the following path instead..

caption: Bad Path
As you can see, this isn't what I'm trying to do, I would like the enemy to follow Path2. But here's the kicker: The enemy's initial x and y coordinates vary when it decides to do the charge. Therefor simple x and y checks do not work. The enemy must follow a line. Now I could do this easily by making a 2 point spline, but what spline would that be?? Obviously a bezier spline would be OTT for this!
check this out:

caption: Path1

caption: Path2
As you can see.. if I wanted the enemy to follow the blue line in path2, how would I program that? X and Y checks dont seem to be enough. For example.. If the enemy reaches the target X before the enemy's Y is at the bottom, then the enemy goes straight down.. making the following path instead..

caption: Bad Path
As you can see, this isn't what I'm trying to do, I would like the enemy to follow Path2. But here's the kicker: The enemy's initial x and y coordinates vary when it decides to do the charge. Therefor simple x and y checks do not work. The enemy must follow a line. Now I could do this easily by making a 2 point spline, but what spline would that be?? Obviously a bezier spline would be OTT for this!