Best Method for Making Railroad?

Good morning! I’m new here and new to CoronaSDK.

I want to create a railroad track line on the screen with pre-defined tracks already laid. I want the player to be able to tap the beginning and ending stations and a train will follow the existing track between the two. After returning to the home station, I want a new train to automatically follow that line every few minutes. However, I’m a bit confused on the best method of setting a pre-defined track and having the train follow it.

I’ve looked at the A* algorithm. but it seems to be more for determining the “least costly” route between two points, rather than following a set path.

There’s the Physics Joint (http://developer.anscamobile.com/content/game-edition-physics-joints), but that just doesn’t seem right.

There’s this suggestion about following a bezier curve (http://developer.anscamobile.com/code/bezier-object-along-curves-path), but I don’t really want it to follow a curve.

This seems the most likely candidate (http://developer.anscamobile.com/code/move-object-through-path), but I’m wanting to check with someone with more experience to see if I’m missing something that would be wiser to use.

Thanks for your time and any help you can provide. [import]uid: 156656 topic_id: 27967 reply_id: 327967[/import]