So this is what my scene looks like normally.
And this is what it looks with split screen.
And as you can see this is terribly pixelated. I don't know why. How do I fix this?
This is my Split Screen Scene
- Viewports (HBox Container)
- ViewportContainer1 (Viewport container)
- viewport1 (viewport)
-World(Scene with the players, NPCs, tilemap etc.)
- ViewportContainer2 (Viewport container)
- viewport2 (viewport) For Player 2
And this is the code
onready var viewport1 = $Viewports/ViewportContainer1/Viewport1
onready var viewport2 = $Viewports/ViewportContainer2/Viewport2
onready var camera1 = $Viewports/ViewportContainer1/Viewport1/Camera2D
onready var camera2 = $Viewports/ViewportContainer2/Viewport2/Camera2D
onready var world = $Viewports/ViewportContainer1/Viewport1/World
# Called when the node enters the scene tree for the first time.
#viewport1.world_2d = $World.get_world_2d()
viewport2.world_2d = viewport1.world_2d
camera1.target = world.get_node("Sprites/YSort/Archer Man Separate")
camera2.target = world.get_node("Sprites/YSort/Throwing Weapons Man Separate")
pass # Replace with function body.**
Any idea what I should do?