I’ve got most of my game logic done for a game so I have started working on multi resolution images for my display objects. Most of my objects are relatively small but there are a lot of them so I would like to use ImageSheets but I’m not sure if Corona would use the dynamic image scaling technique on sprite sheets. Does anyone know if there are issues with this? [import]uid: 164950 topic_id: 29469 reply_id: 329469[/import]
Hello intoitgames,
I’m very new to Lua and the Corona SDK, so I’m not a pro 
But I use this code in my project. And it’s works great!
(this was posted on the forums, so don’t credit me)
if display.contentScaleX == 0.5 then
sheet = sprite.newSpriteSheet( "image@2x.png", 640, 124 )
else
sheet = sprite.newSpriteSheet( "image.png", 320, 62 )
end
[code]if display.contentScaleX == .5 then
instance.xScale = .5; instance.yScale = .5
end
instance.x = display.contentWidth / 2
instance.y = 51[/code] [import]uid: 150924 topic_id: 29469 reply_id: 118374[/import]
Thanks Alwin, I guess I’l have to use that workaround. I was just initially wondering if corona woudl do that automatically. [import]uid: 164950 topic_id: 29469 reply_id: 118396[/import]