Jump to content

Sprite animation switching


Recommended Posts


The game I am working on involves the sprite switching out body parts as it picks up objects. I am looking for advice for a better way to do this type of animation. The head, torso, arms, or legs change depending on what has been picked up. The initial version of the game involved lots of sprite sheets. Despite their being only 2 different versions of each body parts, 16 sprite sheets were made (one for every possible combination of the character). This was very inefficient.

We have tried using dragon bones to do the animation, but that has been a bit confusing for my artist to figure out.

People who have done this sort of thing before, what do you recommend?

Here is an early prototype to get an idea of what we are trying to do. Pick up the yellow balls change the body parts.


Link to comment
Share on other sites

I have not done this before with Phaser, but could you not just make the interchangeable parts different sprites and attach them as children? Then you could pretty easily apply animations/movement to them and just destroy and add new ones in their place as needed.

Edit: It looks like there's a (somewhat impractical) example of this in the examples section: http://phaser.io/examples/v2/sprites/child-sprites

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...