Get device height?

TF101

  • *
  • Posts: 14
Hi,
Excuse me for asking so many questions. I am a absolute beginner with Stencyl.
I am coming to Stencyl from the MIT App Inventor.

Is it in Stencyl possible to get the height of the user device?
And after that to adapt the screen (or Level) heigth to the height of the device?
I searched some tutorials but found nothing useful.

See picture:

Or is that not possible at all?

Thomas

yoplalala

  • *
  • Posts: 1591
Stencyl will automatically adapt the game to the screen
http://www.stencyl.com/help/view/mobile-app-scaling/

It is possible to find the screen height by code, but quite useless :)
If you really want it, I'll look for it .

corbanwolf

  • Posts: 213
In block search just type screen, and you will find a block with screen size either height and width. And as @yoplalala said, it's good to use scalling mode so it will fit any screen automatically
♪♪♪♪♪♪

TF101

  • *
  • Posts: 14
Thank you for the answers. I think I have to get a little more familiar with the program  ;)

The picture i attachted, is Scale to fit (Full screen)

« Last Edit: May 19, 2020, 11:54:27 am by TF101 »