Is it possible to use some shader/viewport/programming trick to make the character leave the game window?

Godot Version

v4.6.1.stable.official [14d19694e]

Question

My game’s main mechanic is glitching out of the screen (I still have no idea where to go with that but it seems like a cool concept). It will probably work fine in fullscreen because the game is in 4:3 so it’s almost guaranteed to have some border space, but I have no idea how I can implement that in windowed mode. I know OneShot has such an effect in one of the endings, but that’s not made in Godot. The only thing I can think of is actually making the game permanently fullscreen and just drawing a fake window on top but my brain is already starting to explode just thinking about this. Any better ideas?

ik u can use borderless transparent windows to let things look like theyre floating on the desktop in a sense

In your project settings, there’s a toggle called “Per Pixel Transparency”, if you tick that and enable it, you can make the background of your game transparent during runtime, which will show the desktop of the user. Couple that with borderless, and you can essentually just draw a fake window somewhere in the middle of the screen and contain your game in there until a character of yours need to leave the screen. Since your game is technically “full” screen.

2 Likes

Ave Tiberius (sorry, I have a character named Tib and every time I see you, I can’t help but think of him)

That’s cool and all, but if the game’s icon is hovered above in the taskbar, won’t the whole fake window setup be shown there, all the empty space and stuff? That’s what I’m concerned about, if someone just accidentally sees that, it might spoil what’s to come