imagesuffix question

I am trying to use imagesuffix for higher resolution android devices. The background images swap the 2x versions but how do I swap higher resolution button images I have on the screens. The low resolution buttons are 100x60 and the 2x versions are 200x120. Can this be done?

[import]uid: 107974 topic_id: 22123 reply_id: 322123[/import]

The same way you do it for your backgrounds ? That’s presuming your using imageRect for your buttons also [import]uid: 84637 topic_id: 22123 reply_id: 87936[/import]

Guess Im missing something because they dont swap in
for instance in the following code image 22@2x.png gets used but 1@2x.png doesn’t
function new()
local localGroup = display.newGroup()
display.setStatusBar(display.HiddenStatusBar)
local background=display.newImageRect(“22.png”,380,570)
localGroup:insert(background)
background.x = display.contentWidth / 2
background.y = display.contentHeight / 2

local v1 =display.newImageRect(“1.png”,90,50)
localGroup:insert(v1)
v1.x=display.contentWidth/5.5
v1.y=display.contentHeight/4*1.17
local v2 =display.newImageRect(“2.png”,90,50)
localGroup:insert(v2)
v2.x=display.contentWidth/2*1
v2.y=display.contentHeight/4*1.16
and this is my config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["@2x"] = 1.8,
},
},
} [import]uid: 107974 topic_id: 22123 reply_id: 87956[/import]

Figured it out I had some of the images saved as @2X instead of @2x [import]uid: 107974 topic_id: 22123 reply_id: 87967[/import]

Glad to hear it, was just about to suggest checking your filenames :slight_smile: [import]uid: 84637 topic_id: 22123 reply_id: 88081[/import]