Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
I am working with different aspect ratios (using scale outer) and would like that an object would be in the center of the screen no matter what is the apsect ratio of the screen
Develop games in your browser. Powerful, performant & highly capable.
x center = ((ViewportRight("layer") - ViewportLeft("layer")) / 2)
Y center = ((ViewportBottom("layer") - ViewportTop("layer")) / 2)
Should work on any scaling settings.
great, thanks! and also for your other answer