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
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
hello
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