Alternative to Sprites Overlapping

1

You've probably seen / played some game where you could change your character's outfit / clothing / appearance.

I'm building a little Android game that offers this feature, and I currently get that using the Overlapping technique of sprites, which is basically having the character, and having the equipment drawn in a layer above. However, this causes me, every time I have a new idea of equipment (unique equipment, with different characteristics), I have to draw this piece of equipment in all existing positions (walking, using magic, jumping ..). I'm also beginning to suspect that this consumes a huge amount of RAM (which can be a real problem on less powerful phones).

Given a lookup, I saw a Reddit user suggesting to make the models in 3D, render and then use it as 2d, but I have no idea where to start doing this, and I would like to see if there are other alternatives before trying that.

I would like to know if you could give me an alternative to Overlapping, which would also allow me to create an efficient character customization.

Remembering I'm in a 2D environment

    
asked by anonymous 02.05.2017 / 20:02

1 answer

1

I think there are two possibilities, one similar to the one you said.

  • Use a free plugin provided by Unity Technologies: link
  • Imitate what the plugin quoted above does: create a 3D model of sprites, with the parts of the character and animate in 3D. Then place the pieces of armor attached to the respective bones (bones). You can make specific bones for armor movement to look more beautiful.
  • Unity will only have to hide the armor as needed.

        
    08.05.2017 / 23:55