Jump to content
  • Advertisement
macmanmatty

Optimization proper way to change armor '/ weapon images?

Recommended Posts

Posted (edited)

I have   spirtes that will be turned into animation images  for  the game actors.  What would be the best way to change the weapon / armor for each actor?  IE walking with sword swinging sword  then when he equips axe walking with axe  swinging axe  ECT.  Same for armor? Have sheets with  the weapons and armor and then overlay them on to the base spirte when the user changes the weapon  or have premade sheets  with all of the various combos of  armor / weapons  that the solider can have and then just grab the ones needed for the current selection. I'm thinking the first option is better, but are there any other better ways?

Edited by macmanmatty

Share this post


Link to post
Share on other sites
Advertisement

Weapons and armour can be parented on top of the sprite. Terraria works like this and has mod tools so you can see how it works.

 

The proper way to do armour however is to make full sprite sheets with the character wearing the new armour, that is why so few of the old games used it. It is more stable and has no chance of errors where the original armour shows through.

Parenting over is the fastest and best way using modern computers, having one sprite overlapping a other has almost no cost, so feel free to do it this way. Just check that each piece is working correctly.

Share this post


Link to post
Share on other sites

You could parent the sprite, but add a overlay that blurs it for a little while, and add a mechanized upgrade sound of some sort.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!