// the find
geegaz/Multiple-Windows-tutorial
Godot 4 tutorial for making a character that moves outside of the game window
A Godot 4 tutorial and working demo showing how to make a game character that exists as its own transparent, borderless OS window and walks across your desktop. It teaches three things: the Window node API, sharing world_2d across viewports, and the per-pixel transparency stack needed to pull off the illusion. Aimed at Godot developers who want to build fourth-wall-breaking mechanics.
The core trick — making the player character a tiny transparent window and syncing world_2d across viewports — is explained clearly with minimal code; the tutorial doesn't bury you in boilerplate. The author is honest about why things flicker (process order lag) and offers a partial fix rather than pretending the problem doesn't exist. Two scene variants are included: the step-by-step tutorial version and a cleaner refactored one, which is useful for seeing the delta between 'works' and 'works well'. The visibility layer culling approach to hide the world from the character window and vice versa is a clean solution to a genuinely tricky problem.
The flickering on window drag is acknowledged but not solved — the velocity-offset trick only partially helps, and any game shipped with this would need a proper fix or a design that hides the artifact. CanvasLayer and ParallaxBackground don't propagate to additional windows, which cuts off a lot of standard Godot UI and visual patterns; there's no workaround shown. Physics and collision happen globally so the character can walk on invisible terrain — fine for a proof-of-concept, but the gap between demo and shippable feature is wide. Per-pixel transparency is noted as having a performance cost and breaking on some systems, but there's no guidance on which systems or how to detect and fall back gracefully.