D
Destal
Guest
Hello,
I'm wondering how to do an equipment system. By that I mean how to draw different pieces of armor or weapons and follow my player animations.
What I've done so far:
- Have a nude player sprite with idle (2 images), running (4 images), attacking (4 images) animations;
- Every armor has all these same sprites with the same amount of images so it follows the player animation;
- Have the player arms in separate sprites so you draw them in the right depth (if the player is looking to the right: left arm, player, armor, right arm)
I'm only talking about torso armor but I could have legs, arms, feet, helmet, which would mean I could have:
Players sprites
- Running
--- Head
--- Torso
--- Arms
--- Legs
--- Feet
- Attacking
--- Head
--- Etc...
Gold armor sprites
- Running
--- Helmet
--- Torso
--- Arms
--- Legs
--- Feet
- Attacking
--- Helmet
--- Etc...
And draw them in the right order for depth.
Is it a common way of handling equipment system ? Cause it's a lot of work so if there is a better way...
I'm wondering how to do an equipment system. By that I mean how to draw different pieces of armor or weapons and follow my player animations.
What I've done so far:
- Have a nude player sprite with idle (2 images), running (4 images), attacking (4 images) animations;
- Every armor has all these same sprites with the same amount of images so it follows the player animation;
- Have the player arms in separate sprites so you draw them in the right depth (if the player is looking to the right: left arm, player, armor, right arm)
I'm only talking about torso armor but I could have legs, arms, feet, helmet, which would mean I could have:
Players sprites
- Running
--- Head
--- Torso
--- Arms
--- Legs
--- Feet
- Attacking
--- Head
--- Etc...
Gold armor sprites
- Running
--- Helmet
--- Torso
--- Arms
--- Legs
--- Feet
- Attacking
--- Helmet
--- Etc...
And draw them in the right order for depth.
Is it a common way of handling equipment system ? Cause it's a lot of work so if there is a better way...