Forums

OverviewV-Play 1 Supportposition of objects with different aspect ratios › Reply To: position of objects with different aspect ratios

OverviewV-Play 1 Supportposition of objects with different aspect ratios › Reply To: position of objects with different aspect ratios
#4563

Christian
V-Play Team

Hi Stephan,

yes there is a way: where the Scene is placed in the (possibly bigger) GameWindow, depends on the sceneAlignmentX and sceneAlignmentY properties. By default, they are set to center which is why your logical scene is put in the center, when the GameWindow is bigger. If you want to position you scene always to the top, you can set sceneAlignmentY to “top”. If you want to position elements in the scene always relative to the GameWindow, use the gameWindowAnchorItem for that, as we have done it in our sample games.

Cheers, Chris

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support