Hi,
I'm trying to use automatic image resolution in my game but I can't get it to work the way it's supposed to.
In my project settings the logic dimensions are 720x1280, Landscape left and I have 2 image scales.
@1.5x <> 1.5
@0.5x <> 0.5
I have 3 image files:
bg.jpg (1280x720)
bg@1.5x.jpg (1920x1080)
bg@0.5x.jpg (640x360)
When I run the player at different resolutions I get strange results.
At 1280x720 it uses the 1.5x image and not the bg.jpg.
At 480x800 it uses bg.jpg (this one is correct)
At 320x480 it uses bg.jpg (should use bg@0.5x.jpg)
I must be missing something but I've been around this for hours and can't get it to work.
Can anyone help me, please? I've prepared attached a sample project.
Comments
Thanks!!
rename bg@0.5x.jpg to bg.jpg, bg.jpg to bg@2x.jpg and bg@1.5x.jpg to bg@3x.jpg
and modify "Image Scales" under app's Properties:
"@2x" => 2
"@3x" => 3
This means that we should always make the logical dimensions the smallest we will support, right?
I think the second tab in this page http://docs.giderosmobile.com/automatic_image_resolution.html can mislead other people.
Thanks for the help!
According to the documentation you mentioned it isn't :-)