can anyone tell me if theres an easier way of doing this
I have my app working fine across iPhone 3 & 4, and iPad 1-3
when it comes to the iPhone 5 because of the taller screen all the positioning I have set is out
where I have set an object at y=50 for the olther devices on the iPhone 5 I need it to be y=94 (and offest of 44) so that it matches the postion of the others rather than being to far up the screen
is there any way of doing this in the config file?
or do I have to manually do it to each lua file??
my current config file is checking if the device is an iPhone 5 using
elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight \> 960 then
if I have to do it manually I’ll be adding
elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight \> 960 then
iPhone5 = true;
then add this to each lua file
-- Add an extra 44 to the positions if using an iPhone 5
local ip5 = 0
if iPhone5 == true then
ip5 = 44
end
and then finally this to each object
object.y = 420 + ip5
just wanted to see if there was an easier way of doing this before spending hours making the changes [import]uid: 68633 topic_id: 35235 reply_id: 335235[/import]