I reopen this topic asking @gammabeam or others for help.
Taking your example how can I programmaticaly put an element on the bottom of the screen consistently across different ratios?
Take this example:
I want an element to be exactly his height from the bottom of screen (origin center), x is irrelevant:
At the beginning I was doing this:
(WindowHeight / scaleRatio) - (sprite.Height/2)
Which worked on the normal ratio but started doing strange things with different ratios, it became apparent that that H would change with the ratio, so I did a proportion:
(WindowHeight / scaleRatio) - ( ((sprite.Height* (WindowHeight / scaleRatio))/LayoutHeight) / 2 )
But doesn't work, why?
Here is a modified capx showcasing my problem: capx
, how can I make the "start" button stick in the same position (bottom of screen - self.Height) across different resolutions?
Thanks for any help0plus12012-12-12 00:58:23