UI / Game area questions

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Panagiotis Halatsako

Hi all,

I am trying to make a game which would hold the following structure, two panels, one for UI and one for the main game:

I’ve created the appropriate margin/hbox/vbox containers for the top UI square but for the bottom square which will be the main game area I have some questions:

The game would be mostly a platform game but will have some interactable areas with buttons which will be clicked from the top ui square (think of SCI sierra buttons). The game’s boundaries would be INSIDE the game square so outside it will mask it (the side 10 width each columns).

How do I constrain the game within the game square? Does this require to use a viewport container there that would call a level from another scene?

You can archive that using Godot’s Viewport Node, here is a video demonstrating its functionality: https://youtu.be/euQZ-jddoBo

VitusVeit | 2022-06-10 21:37