+2 votes

Can't seem to find how to set the monitor to run via gdscript. This can be set in the editor settings in windows placement, but I don't know how to set this to happen from gdscript when running not from the editor. Thanks for any help.

in Engine by (20 points)
edited by

Do you mean running simultaneously?

AlMoeSharpton86, simply want to choose from gdscript the screen in which to dock the game. Emulate de "next monitor" preference of windows placement from the editor settings in gdscript for my game.

1 Answer

+4 votes

You want to use OS.set_current_screen(value) where value (an integer) is the screen you want to use.


[edit] you can also get the number of screens available:


by (252 points)
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 Frequently asked questions and 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 [email protected] with your username.