How to switch between sprite sheets for the object?

Hey all,

I have a question regarding sprite sheets, I have an object and it gets all of its images sequences from a sprite sheet, but there are too many images, and I cant put them all under one sheet…

Is it possible to switch to a different sheet during runtime?

If so, can you please explain how?

Roy.

Hi Roy,

You can’t really “change sheets”, but you can configure sprites (objects) that pull images from various sheets. Please inspect the API documentation on this (the last example at the end shows how).

http://docs.coronalabs.com/api/library/display/newSprite.html

Hope this helps,

Brent

Many thanks! works like a charm

Roy.

Hi Roy,

You can’t really “change sheets”, but you can configure sprites (objects) that pull images from various sheets. Please inspect the API documentation on this (the last example at the end shows how).

http://docs.coronalabs.com/api/library/display/newSprite.html

Hope this helps,

Brent

Many thanks! works like a charm

Roy.