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
Develop games in your browser. Powerful, performant & highly capable.
so it must start in left-top corner ...
Set position to ViewportLeft(layer);ViewportTop(leyer) ?
That work perfectly, thanks!
I was trying something like:
(-WindowWidth+OriginalWindowWidth*WindowHeight/OriginalWindowHeight)/2
(-WindowWidth+OriginalWindowWidth)/2
(-WindowWidth+OriginalWindowWidth)/(2*WindowHeight/OriginalWindowHeight)