ThanksOriginally Posted by LB
They just head directly for the targeted enemy. Because the enemy is moving, they curve. With a bit of effort you can get them to head on a direct intercept course, or smooth off their turning so that they curve even nicer.
You could extend the example by replacing these lines:
Fire 1 pressed:
+Restrict for 20/100
-Shoot bullet
TargetID of Player != -1
+Fixed of Enemy = TargetID of TargetID("Player")
-Bullet: Look in direction of Enemy
With these:
Fire 1 pressed:
+Restrict for 20/100
-Shoot bullet
-Set TargetID of Bullet to TargetID("Player")
TargetID of bullet != -1
-Start foreach loop for bullets
On foreach loop for bullets
+Fixed of Enemy = TargetID("Bullet")
-Bullet: Look in direction of Enemy
Then the bullets will only home on the target they were originally fired at. I left it the simpler way, and it also looks cool!