how to display a subimage from a SpriteImage using initializeFromMap?

Visto 20 veces
Saltar al primer mensaje no leído

Ryan Jarvis

no leída,
17 abr 2013, 13:02:3117/4/13
a caa...@googlegroups.com
There was another thread asking a similar question but I still don't understand how to do this.

I have created a SpriteImage and called initializeFromMap with an object that has the same structure as the output of the online sprite packer tool.

Next I create an ActorContainer and call setBackgroundImage passing in the SpriteImage object.

Now how do I get the ActorContainer just to show a specific subimage instead of showing the entire image that was passed into initializeFromMap?

Jon Hall

no leída,
2 may 2013, 20:57:312/5/13
a caa...@googlegroups.com
I'm hoping it's more complex than just this, but you've used setSpriteIndex( integer ) on the ActorContainer to set the specific sub image you're wanting?
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos