This is working on every device in the simulator except for the Droid:
local suffix = "";
local displayScale = display.contentScaleX;
if displayScale \< 1 then
suffix = "@2x"
end
local mySprites = spriteGrabber.grabSheet("mySprite"..suffix);
local sprite = mySprites:grabSprite("", true, { idle={1,8,1000,0}, jump={9,12,500,0} });
obj:insert(sprite);
sprite:show(0,0,displayScale,"c")
sprite:playClip("idle");
On the Droid the sprite is very large compared to everything else. Can someone explain why? I have two versions of every sprite sheet (mySprite.png and mySprite@2x.png). Why does the incorrect scaling occur only on the Droid?
if it’s relevant, my config.lua has this:
imageSuffix =
{
["@2x"] = 1.5,
}
[import]uid: 52127 topic_id: 13375 reply_id: 313375[/import]