I'm creating an on-rails 3D space shooter akin to Star Fox. I would like enemies to spawn in certain locations and fly along a certain path, some toward the player and some from behind the player, as if they are flying along an unmoving, unchanging "string" that I have drawn in the world. Spawning the enemies is easy: Set up a trigger box somewhere along the level and simply detect when the player enters it. The tough part for me is telling the enemies how and where to fly, when to fire their weapons, etc.
I'm not looking for code, at least not right now. I'm just trying to conceptualize how this will be done.
↧