Hi Community,
Is there any sample for using sprite with dynamic image resolution?
Can you show me some hint for using sprite API with dynamic image resolution? [import]uid: 74428 topic_id: 18503 reply_id: 318503[/import]
just in the case if you dont want to go with sprite log you can do something like below
[lua]local sheet
if display.contentScaleX == 0.5 then
sheet = sprite.newSpriteSheet( “sprite2.png”, 512, 512 )
else
sheet = sprite.newSpriteSheet( “sprite.png”, 256, 256 )
end
spriteSet = sprite.newSpriteSet(sheet, 1, 8)
sprite.add( spriteSet, “mySprite”, 1, 8, 1000, 0 )
instance = sprite.newSprite( spriteSet )
if display.contentScaleX == .5 then
instance.xScale = .5; instance.yScale = .5
end
instance.x = display.contentWidth / 2
instance.y = display.contentHeight / 2
instance:prepare(“mySprite”)
instance:play()[/lua]

be my friend?
http://www.facebook.com/hgvyas123 [import]uid: 12482 topic_id: 18503 reply_id: 70967[/import]
Hey mobi2us, I use Spriteloq and it offers dynamic image resolution. I was so happy when the dynamic image resolution feature was added to this tool. It’s really awesome. If you use Flash to generate animation, I strongly suggest you try Spriteloq. It has its own folder as one of the 3rd party tools too:
http://developer.anscamobile.com/forums/spriteloq-flash-corona®-exporter
If you don’t create your animation using Flash, I’m sorry I don’t know the current status of the sprite API.
Naomi
Edit: Here are list of 3rd party tools: http://www.anscamobile.com/corona/tools/ [import]uid: 67217 topic_id: 18503 reply_id: 70965[/import]
Thank you so much! It is exactly what i want
[import]uid: 74428 topic_id: 18503 reply_id: 71024[/import]