I’m working on a futuristic game where trains are the primary mode of transportation (there are no cars). The trains won’t be player-controlled—they’ll just move along predetermined routes for players to see and interact with (e.g., boarding, disembarking).
The aesthetic I’m aiming for involves trains floating above the tracks, so physical tracks are not an option. This has left me unsure how to handle the trains’ movement smoothly and efficiently, to not lag out lower end systems. I am also going to have multiple of these trains (around 20ish different lines), so efficiency is a priority.
The first game that came to mind with a system like this was Jailbreak, where the trains move along a path without player control. I’d love to hear how other developers would approach this or have tackled similar systems in their own games.
I’m not looking for specific code, just your thoughts on how to design this. For example:
• Would you use waypoints and tweening for movement?
• Would spline-based paths be better for smoother curves?
• How would you handle things like speed adjustments (e.g., slowing down at stations or on curves)?
Any advice or opinions would be much appreciated!