Godot Version
4.6
Question
Hi! Creating a small game with some friends which plays in the style of Warioware. We want to have each minigame show up in their own ‘window’, and you play it in that window. What I’m currently having trouble with is keeping the minigame confined to that window visually. Currently it sticks out of the window, whereas I want it to stay within the confined window space and not render the parts outside of the window. Just like a desktop window it will be dynamically changed mid game.
I’ve tried using a clip children sprite2D as the parent of the minigame, but since the window can be resized I can’t change it without resizing the minigame too. I have also tried using a point light 2D, which works better though I am also struggling to change the size of the light dynamically in code.
From research, I feel the best solution would be a shader mask - but we’re all new to Godot and I’m not familiar with Shaders personally. Though if there is a simple way to go with either of the other solutions I am happy to hear those as well.
Unfortunately I cannot add an attatchment, but please ask if you need more information, and I’ll do my best to provide it. Thank you for the help!