hello 
i need to change a image with a sprite sheet, i never used sprite sheets and need some help, i saw this code:
local tileSheet = sprite.newSpriteSheet("tiles.png", 64, 64)
local tileSet = sprite.newSpriteSet(tileSheet, 1, 10)
local tile = sprite.newSprite(tileSet)
tile.currentFrame = 5
i need something like a:
if #myvariable == 1 then
-- need to show and image with number one, that is on the sprite sheet
elseif #myvariable ==2 then
-- need to show and image with number one, that is on the sprite sheet
..
..
..
i need to learn how i can change the image on a sprite sheet and the signification of this part:
local tileSet = sprite.newSpriteSet(tileSheet, 1, 10), the number 1 and 10
Thanks again corona community [import]uid: 26056 topic_id: 15830 reply_id: 315830[/import]