Hi, I have a problem to display a image.
I would like to display a image at the same place to iphone (ipad) and android devices.
A exemple, I display a image at the bottom left of the iphone simulator, and on the android simulator, the image moves, and the image is not at the same place.
A image example :
http://image.noelshack.com/fichiers/2012/30/1343228520-sans-titre.png
The code :
Main.lua
display.setStatusBar(display.HiddenStatusBar)
local height = display.contentHeight
local width = display.contentWidth
-- bg
bg\_menu = display.newImageRect( "media/imgs/bg\_menu.png", 570, 380 )
bg\_menu.x = width\*0.5
bg\_menu.y = height\*0.5
-- bouton
pad\_haut = display.newImageRect( "media/ingame/pad/btn\_pad\_haut.png", 47, 47 )
pad\_haut.x = width\*.05
pad\_haut.y = height\*.92
Config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = "letterbox",
fps = 30,
imageSuffix =
{
["\_x2"] = 2, -- A good scale for
["\_x4"] = 4, -- A good scale for
},
},
}
Please help (sorry for that english) [import]uid: 157253 topic_id: 29043 reply_id: 329043[/import]
[import]uid: 157253 topic_id: 29043 reply_id: 116876[/import]