Devlog #22: The trader train is running
There's a train in Beyond now. It runs a full loop of the map's railway, stops at stations along the way, and you can ride it. It isn't finished yet, but it already changes how the map feels, so here's where it's up to.

One loop, five stops
The railway was already on the map, so we went back to the train set from our old project and put it on the existing tracks. It runs an 8 km loop with five stations and takes about 54 minutes to go all the way round. It slows into each station, waits a few minutes, then pulls away again.
The train runs on a fixed timetable. Every player sees it in the same place at the same time, so in multiplayer you can plan around it: be at the station when it pulls in, or be waiting further down the line.

Getting on
You can climb on board. We took the doors off and cleared the cages and junk out of the doorways, so you can walk straight in. The rear wagon has a ramp at the back that drops to the ground when the train stops and lifts again just before it leaves.

Making it feel heavy
A train that slides along like it's on glass doesn't feel right, so most of the work went into making it feel like a heavy old machine:
- Wheels turn at the speed the train is moving.
- Cars rock and bounce as they roll, each a little out of step with the others, and harder at speed.
- Couplings: when it pulls away or brakes, each car jolts a moment after the one in front, with a clank.
- Sparks fly from the wheels as it brakes into a station, and now and then when a car lurches at speed.
- Smoke pours out of the round vent at the front of the engine.

It has its own sounds too: an engine that gets louder as it works harder, wheels on the rails, brakes squealing and hissing, the couplings clanking, the odd creak, and a long horn that warns everyone it's coming into a station. All the sounds are free-to-use recordings.

Fixing respawns
While testing the train, we kept respawning and dropping straight through the map, because the ground hadn't loaded in yet. Now when you respawn, the game holds you in place until the ground under you has loaded, then sets you down on it.
What's still to do
- Testing riding with more than one player.
- Smoothing out a stutter for the first few seconds of a ride, while the land ahead loads in.
- Trading at the stations, which is what the train is ultimately for.
- More tuning of the rocking, smoke and sounds once we've ridden it more.
Loading comments...