• 2D
  • Problem with CanvasLayer not being rendered in second viewport/camera on splitscreen game

Hi!

I followed the tutorial on how to make split screen multiplayer games in godot here:

However I'm using canvas layers in my level scene to group certain things. Things inside the parallax layer & canvas layer are only rendered for player 1, for player 2 they aren't shown. Any clue why this is, and how I can solve this problem?

As you can see, the background isn't rendering (the bakcground is inside a parallax layer): https://i.imgur.com/TjOoJGk.png

When you set the camera targets to your player1 and player 2 nodes, check and make sure those nodes were found (not null).

6 months later

I've followed the same tutorial and have a similar problem. In my case I am trying to use CanvasLayer for each of my characters to display a healthbar (and eventually an inventory) - player 1 works as expected, but player 2 displays nothing at all. Did you find a solution?