I dont what im doing wrong Dinamic Resize is not working. In config.lua I wrote the follow code, but its not working:
content =
{
fps = 30,
antialias = true,
scale = "zoomEven"
},
I even try put in my code, but my image still the same size:
if (display.contentWidth \> 320) then
logo.xScale = 2
logo.yScale = 2
end
What is wrong? [import]uid: 9133 topic_id: 3524 reply_id: 303524[/import]
finnk
2
Maybe you should try defining the native width and height of the screen you’re developing for:
[lua]application =
{
content =
{
width = 640,
height = 960,
scale = “zoomEven”,
fps = 30,
},
} [/lua]
Also, I assume the contentWidth is always greater than 320. [import]uid: 11024 topic_id: 3524 reply_id: 10701[/import]
I use this config and it works perfectly:
[lua]application =
{
content =
{
width = 320,
height = 480,
fps=60,
scale = “zoomStretch”,
imageSuffix =
{
["@2x"] = 2,
},
},
}[/lua] [import]uid: 7143 topic_id: 3524 reply_id: 10703[/import]
bsdrago
4
Thanks to all
THATS is WHY am posting in a NEW USER topic…
Ive found the problem. Pay Attention: This is my config.lua:
settings =
{
content =
{
Did you see? Settings, not application. Thats is why was an error. Thnks to all. [import]uid: 9133 topic_id: 3524 reply_id: 10724[/import]