Texture packer examples?

21 views
Skip to first unread message

Arne Brutschy

unread,
May 8, 2013, 12:36:50 PM5/8/13
to caa...@googlegroups.com
Hello,

we would like to use the texture packer module of CAAT
(preferrably in conjunction with the software "Texturepacker"
http://www.codeandweb.com/texturepacker).

Is this module usable? Are there examples somewhere? The tutorial pages
for the module are currently empty, same as the API docs.

Cheers,
Arne

Arne Brutschy

unread,
May 8, 2013, 6:06:56 PM5/8/13
to caa...@googlegroups.com

I just found SpriteImage.initializeFromMap(image, map), which answers
my question. I have two questions regarding this:

1) Does anyone know if I can nest sprite images? Ie, I have a large map
of images, and some of them are in themselves image maps (ie, a bunch of
buttons). Does that work with CAAT, or do I need to break things up? I
would like to use CAAT's handy feature of automatically splitting
images by row and column count, but I have to embed these images in a
bigger texture.

2) I use setBackgroundImage(asfd, true) a lot to set the size of
actors. How can I keep the same functionality when using sprites from a
map?

Arne


On Wed, 8 May 2013 18:36:50 +0200 Arne Brutschy <abru...@xylon.de>
wrote:
Reply all
Reply to author
Forward
0 new messages