#Multiple Windows

1 messages · Page 1 of 1 (latest)

leaden sky
#

Hi! I'm trying to make a simple game where I have 3 windows (viewports), and I have a character that moves smoothly between them.

Any tips on how I should go about this? :)

#

My understanding is I should make a window using a Window Node, with a child SubViewportContainer, then a child SubViewport, then Camera2D

granite mauve
#

Or do you mean separate views within the game's main window?

leaden sky
granite mauve
#

Ah, ok.
Then my suggestion should work.

#

Another tip.
To make moving the window look at a different place in the game world. Add a Camera to each and make the camera offset by the Window's position.

sturdy cave
leaden sky
#

^
Is this the correct way to render the main world2d on my window?

#

(I got the world2D from the main viewport/window, and then set the player window to show it as well...)


My only issue now seems to be that the second Window is updating a lot slower than the original...
Is this maybe a problem with my own computer?

leaden sky
granite mauve