How do I create a split-screen in 2D?

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

Hi there,

I am really frustrated because I am not able to set up a simple split-screen. My goal is to have 2 players that can fly independently around a tilemap. One should use a viewport on the left half of the screen, the second player should use the right side of the screen. The players should be positioned at the centres of their viewports.

After hours I have not found anything that helped.

Thank you in advance for any advice!
Barblebee

Even a simple split screen can be really complex to set up (viewports are not too friendly).

Take a look at the Split screen platformer demo, that setup may work on a specific design but should help you to start your odyssey with viewports.

eons | 2017-10-09 22:02

:bust_in_silhouette: Reply From: Barblebee

Thank you very much for your comment, eons!

The demo project “split_screen_platformer” from the godot-demo-projects under Download - Godot Engine is exactly what I was searching for!

Doesn’t seem to exist any more?

duke_meister | 2018-07-08 12:45

I updated the godot 3 demo project (pull request) but there’s also a full tutorial on how to do this in godot 3 at kidscancode’s blog.

markopolo | 2018-08-16 14:31