Combine 2D in 3D

Godot Version

Godot Engine v4.2.1.stable.official.b09f793f5


Is it possible to combine 2d and 3d, let me explain, to have depth for the landscape but have the character move on a single line.
I have an example of a game that unfortunately doesn’t seem to be coming out any time soon, but that’s what I’m trying to do:

If it’s possible, could I have an example of the code?

Yeah, all you need to do is have separation of data and visualization. Your player object moves in a 2D world, but you represent it as a 3D world. Games have done that since Doom. For example, early 3D MMOs used a naive 2D top-down map, represented in 3D. That’swhy they couldn’t have bridges or caves without blocking movement or scene transitions. There’s nothing fancy to it, just think about how the player moves and separate that from what the player looks like.

Thank you, I will find out more about the topic