fantomEngine - Animated sprites from TexturePacker

Monkey Forums/User Modules/fantomEngine - Animated sprites from TexturePacker

monotonic(Posted 2013) [#1]
Hi All,

Is there anyway to load an animated sprite from a TexturePacker packed image. So for instance I would like to have all of my sprites in one image then pull out animation frames by name for individual entities, is this possible?

Thanks in advance.

MikeHart(Posted 2013) [#2]
Not currently. Are you adding single images to the packed texture or an image strip?

MikeHart(Posted 2013) [#3]
With an image strip, you can do actually right now already.

monotonic(Posted 2013) [#4]
Hi Mike,

For each unit I'm creating an image strip for each animation, so one unit might have five strips one for each animation loop. I'm then adding these as separate images to my texture packer image. So yes they are indeed separate images.

how would I go about this? I have used fE to create an animated image object and to load a singular image from texture packet i just don't know to combine the two.


MikeHart(Posted 2013) [#5]
Can you post the source for it?