Hi all,
I'm playing around with TexturePacker and wonder how to add additional animations to the animation "stack". Probably a quite simple thing, but I just won't get the correct way.
Using the boilerplate the Texture JSON is automatically imported and using createAnimationFromName() the tiles are accessible by their name.
My code (relevant part):
this.renderable = game.texture.createAnimationFromName([
"stand"
]);
this.renderable.addAnimation(
"walk", [
"walk1",
"walk2
",
"walk3
"
]);
What I want:
1. a default animation (here just one tile "stand")
2. a "walk" animation with tiles not contained in the previously generated anim, but it is in the Texture.
The above Snipped does not work and the addAnimation() examples I found (i.e.
https://www.codeandweb.com/texturepacker/tutorials/using-sprite-sheets-with-melonjs-tutorial ) only work with tiles loaded through the createAnimationFromName method.
Cheers,
Matthias