Retina X,Y compressed as well? or do i need to compensate?
grimtooth
Member Posts: 69
I know this isn't a stupid question because my dad says that there are no such things as stupid questions... only stupid people
Are the X,Y coordinates on a retina display compressed to correlate with the increased pixel density?
Pictures to show what and why I am asking.
http://img51.imageshack.us/img51/5755/menusx.png
Touch1 Collides with Actor Menu.Button changes Main.Menu=1
http://img824.imageshack.us/img824/5179/touchk.png
(Does this look OK?)
Score bar is 68 pixels tall at the top of the screen, so Menu Self.Position.y should be be game.display.size.height -68 -menu height (=388) in order to "dock" onto the bottom of the score bar. (X=0=easy)
But then I started wondering.. is the X,Y coordinate system on retina display devices also compressed (which would mean no need to change the code) or is it just the graphics that get compressed and would my menu be left floating mid-screen rather than "docked" under the score bar?
I really hope I didn't make that more confusing than need be..
Grim
Are the X,Y coordinates on a retina display compressed to correlate with the increased pixel density?
Pictures to show what and why I am asking.
http://img51.imageshack.us/img51/5755/menusx.png
Touch1 Collides with Actor Menu.Button changes Main.Menu=1
http://img824.imageshack.us/img824/5179/touchk.png
(Does this look OK?)
Score bar is 68 pixels tall at the top of the screen, so Menu Self.Position.y should be be game.display.size.height -68 -menu height (=388) in order to "dock" onto the bottom of the score bar. (X=0=easy)
But then I started wondering.. is the X,Y coordinate system on retina display devices also compressed (which would mean no need to change the code) or is it just the graphics that get compressed and would my menu be left floating mid-screen rather than "docked" under the score bar?
I really hope I didn't make that more confusing than need be..
Grim
Comments
You see with RD, its the screen density that changes not screen size.
Taking that in consideration the co-ordinates are not affected and won't change w.r.t RD.
Hope that helps.