–2 votes

If I use ALT + Tab or Minimize the window can I make it immediately pop-up again?
I basically want the window to always be on top and always be full-screen, until a quit request is entered.

in Engine by (242 points)

is that OS authority?
it looks like virus to me, if possible.
I made a game runs with fullscreen, and can't be changed another window or minimize it.
what if it can not be quit for some reason, like I forget to handle quitting or game has bug with quitting?

@volzhs it is for my method of anti-piracy, which I ironically stole from the creators of game dev tycoon. I have a sound file of vuvuzelas on loop and an anoying animation on loop as well. The plan is to make fake versions of my own game and distribute them on sharing sites all through the week of its release. Everything is pirated eventually, working on a drm or authentification system would be pointless, so I figured I should have some fun messing with people who intend to steel my work, before people actually put my game on sharing sites.

1 Answer

0 votes

func ready():
windowalwaysontop (true)

script called listentofocus_changes

extends SceneTree
func notification(what):
match what:

by (18 points)

Please use the


by typing a line break and then four spaces before entering your code.
All your underscores are unreadable and being converted to italic text.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.