Godot 4, Vertical Splitscreen Help

Godot 4.2.1


I’m trying to do a splitscreen game in Godot 4, however all the tutorials I’ve found are for version 3+.

I wish to create a vertical splitscreen, but I don’t wish both players to be on the same level at the same time (like a typical multiplayer game, co-op etc).

The game is a vertical race. I’d like to either display the same level on each viewport, but with different spawned players on each, or I could just duplicate the same level with the different players to keep it simple.

I’m sure it’s possible, but I just can’t find information on setting up the new SubViewportContainers and Subviewport nodes.

Each player will have a following camera attached because it’s platformer style, but I don’t know if I would still require cameras for each viewport as well.