Animating sprite parts as one

Hi everyone. First post here, just started getting into phaser.

I’m wondering about how can I get different animations (sprites) animating as the player itself. Since my game involves alot of items that show on the player, I’m thinking about avoiding hard-drawing sprites, instead dynamically render them depending on what player is wearing in inventory.


There are two basic approaches:

  • Compose a new spritesheet on a Dynamic Texture, create texture-frame animations from that texture, and play those animations on a sprite.
  • Compose several sprite parts in a Container, and maybe play animations on each part simultaneously.
1 Like

Thanks. Sounds good, is there a difference between using a container or dynamic texture?

It’s one game object versus several.