Hi! I’m creating a 3D game in Godot 4. The level is an endless loop on a highway.
There’s one object (the tree on the right). In each loop, the tree can be “normal” or have an anomaly (for example, a sign pointing back). Of course, it could be other strange objects, not just a tree.
The game rule is: if the tree is normal, the player must move forward; if there’s an anomaly, the player must turn back (similar to the rules of The Exit 8).
What’s the best way to implement:
a seamless road loop so the player doesn’t notice it, and
a loop manager that generates the tree’s state and checks whether the player has moved forward/backward correctly?
Consider how the endless stairs work in Super Mario 64.
Mario is being teleported backwards after a certain point, creating the illusion of an endless staircase.
Maybe you could do something similar?
Have a strip of highway with a teleport trigger someway across it. When the player touches that trigger, teleport them to the next section. You may need to make the game scene foggy to hide the teleport.
You could also have a second teleport trigger behind you, so you can turn around and be teleported to the next section.