I’ve gone through these links already.
Docu
http://developer.anscamobile.com/reference/sprite-sheets
Complete example
http://developer.anscamobile.com/content/horse-animation
What I’m trying to do is reference just one image from a spritesheet. I’m not trying to animate between a series of sprites.
All the examples are how to animate between a series of sprites.
I understand this part from the horse animation:
[code]local uma = sprite.newSpriteSheetFromData( “uma.png”, require(“uma”).getSpriteSheetData() )
local spriteSet = sprite.newSpriteSet(uma,1,8)
sprite.add(spriteSet,“uma”,1,8,1000,0)[/code]
How would I reference a single sprite from the spritesheet using the code below.
“tree_l_sugi.png”, from the horse example, references a single image (not a spritesheet).
local tree\_l\_sugi = display.newImage("tree\_l\_sugi.png", 23, 0)
How would you reference a sprite from a spritesheet?
Demetrius
[import]uid: 1380 topic_id: 12164 reply_id: 312164[/import]