Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Is it just me or does this not work as it used to? I'm trying to scale the object to fill the screen. Instead, it only fills 1/4 of the screen on the top left.
Sprite:
ViewportLeft(Self.LayerName)+ViewportRight(Self.LayerName)
ViewportBottom(Self.LayerName)+ViewportTop(Self.LayerName)
https://www.dropbox.com/s/w5ma3cybtsbhn0m/scaleToViewportSize.c3p?dl=0
Either you have set the origin of your sprite in the upper left corner or you have to set your sprite in the middle of the viewport. At the Moment you set the middle of your sprite in the upper left corner of you viewport.
Develop games in your browser. Powerful, performant & highly capable.
Thanks! So simple, yet I didn't check the origin point, but the code instead.