Railroad system

Status
Not open for further replies.
Not actually done it, but I could if I wanted to.

I would make the track a unit, then I'd use an array point (or x/y, both works) variable and store detected locations of the track. Then check for another track from the last detected track.
You'd also have to take model size and facing into account, as long as your track doesn't have some weird shape (non linear actually) it wont be that difficult.
 
Someone needs to "build" the road first. The train needs to know where to go next.
This might happen also via triggers only. It's not needed to happen physicaly at the game, with units/buildings and effects. But it looks better of course.

The problem is that it has a weird shape and curves.
Is the problem about visuals?
 
As everyone is talking about an actual railroad, I would like to bring up an alternate way.

Dependent on your needs, you could also use a static model, like a plane and animated textures, or with different animations.
You would manipulate a unit's facing then instead of x/y, which is, in my opinion, easier, isn't it ?

The main problem with this solution is to make the static model look good.
 
Status
Not open for further replies.
Back
Top