• Godot HelpProgramming
  • [SOLVED]Want HTML5 Landscape & Android Portrait - Possible To Change Screen Resolution At Runtime?

Hi,

We recently ran our game demo on Android mobile devices for the first time. We want landscape screen on HTML5 and portrait screen on Android. Is it possible to change the game screen resolution at runtime? Let us know, thanks!

Jesse www.FallenAngelSoftware.com

14 days later

Hi,

Tried that, does not work properly? (pixelizes the game display?)

Jesse

EDIT #1 - Screen size is same, only size of pixels are changed?

Below script code seems to work ok:

OS.set_window_size( Vector2(360.0, 640.0) )
get_viewport().set_size( Vector2 (360.0, 640.0) )
2 years later