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
I have a problem with calculating sprite position.
I use "Fullscrean in browser"="Scale outer"
In hud layout (parallax = 0,0) I have object and it should fill all the screen but not more, so it must start in left-top corner and end exactly in right-bottom corner.
But I dont knew how to do this with "Scale outer" and parallax = 0,0
https://www.dropbox.com/s/f1z4qwf13aej2a1/test.capx?dl=0
so it must start in left-top corner ...
Set position to ViewportLeft(layer);ViewportTop(leyer) ?
Develop games in your browser. Powerful, performant & highly capable.
That work perfectly, thanks!
I was trying something like:
(-WindowWidth+OriginalWindowWidth*WindowHeight/OriginalWindowHeight)/2
(-WindowWidth+OriginalWindowWidth)/2
(-WindowWidth+OriginalWindowWidth)/(2*WindowHeight/OriginalWindowHeight)