Single Sprites from Spritesheets

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]

After you add the sprite sheet, register a one-frame animation and :play() that. That should do it.
-E [import]uid: 71962 topic_id: 12164 reply_id: 44290[/import]

Thanks, I thought about this. I was trying to see if there was some method that would allow me to call a single frame.

I’d like to use something like this:

  
spriteWithNameAtPositionInGroup  
  

Any help is greatly appreciated.

Demetrius
[import]uid: 1380 topic_id: 12164 reply_id: 44347[/import]

I did a search for ya but couldn’t find anything… Only for MovieClips which isn’t what you’re looking for… Srry bro!
-E [import]uid: 71962 topic_id: 12164 reply_id: 44348[/import]