I starting to get the hang of spritesheets now and how the work etc and from what I have read they seem to be the way to go.
But after trying a few things, I came to a stop when trying to use them when creating a new uiButton but it doesn’t work.
1, How do I get UI.lua to work with spriteGrabber?
I found spriteGrabber in the codeExchange and I realized real fast how awesome it was. I have no problem using spriteGrabber to make animations or just add single images. But my second question is,
After I have made my spritesheets with TexturePacker and used the AUTO SD feature, How do I get the spritesheets to work together with normal and retina devices?
From what I can see in both of the .lua files, is that all images have @2x prefix but the normalRes spritesheet all images are scaled down.
2, So what I have now is two spritesheets, textureAtlas.lua and textureAtlas@2x.lua, is it enough to require both spritesheets or do I need to set up some additional code to make it work?
[code]
local shipGroup = display.newGroup()
local textureAtlas = require (“textureAtlas”)
local textureAtlas = spriteGrabber.grabSheet(“textureAtlas”);
local ship = textureAtlas:grabSprite(“ship”,true);
ship:setReferencePoint(display.CenterReferencePoint);
ship.x = centerX;
ship.y = centerY;
shipGroup:insert(ship);
[/code] [import]uid: 34126 topic_id: 10323 reply_id: 310323[/import]