railway logic

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By aadyainfotainment
:warning: Old Version Published before Godot 3 was released.


I am new to godot engine. I am trying to make a 2d railway game. I know to move the train along a straight track using the Navigation2D node.

What I am trying to achieve is a switch. There will be a switch on the track which will enable the train to change the track. Can someone advise how the best way to achieve this? Thanks.

:bust_in_silhouette: Reply From: GameVisitor

Check out this sample, it might help you:


Sorry this couldn’t be the answer. The train is running on a single track. My game will have minimum two tracks with an option to change tracks at intersections with a switch. Something like below image:

enter image description here

aadyainfotainment | 2017-10-08 05:09