How to change the screen position when run the game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nolvy

When i play the project, the screen keep appear at the bottom of my computer. How to change it to the center

I have honestly no idea what you mean. A screenshot and better explanation would be advisable.

Wurzelpilz | 2021-07-29 09:01

The windows position, how do you center it at runtime?

Wakatta | 2021-07-29 09:15

:bust_in_silhouette: Reply From: clemens.tolboom

You could use

OS.window_position = Vector2(400,400)

to manually calculate the correct position.

By combining with OS.get_screen_size() you can to this automatic.

See also OS Test Demo or the code around here for more display property demo’

Thanks, It Worked

Nolvy | 2021-07-30 04:32

Have you used only the position or did you calculate it based on screen size. Maybe add your final code as a comment?

Please mark the answer as such if applicable :slight_smile:

clemens.tolboom | 2021-07-30 07:34