Home Game Development unity – How to make 2D Customizable Pixel Animation

unity – How to make 2D Customizable Pixel Animation

0
unity – How to make 2D Customizable Pixel Animation

[ad_1]

(Using Unity)
I’ve looked around and can’t seem to find an answer on how people animate 2D pixel sprite animation that allows for customization. Let’s use Stardew Valley as an example since it’s popular and does what I’m talking about.
So far I have tried using multiple sprites for each body part but that proved to be not as customizable as I thought without needing to animate every possible combination.
I’m currently using a shader I wrote that uses two sprite sheets that work together using UV coordinates for the shader. This has been great, because it allows me to create one animation for each animation I need, then I can change the one of the sprite sheets and the shader will change the animations to the correct image I need.
This works for dynamic changes to the player’s appearance and I can even use the same shader for every NPC, then just change the sheet for that NPC to look how I want them.
Unfortunately, although I can change the appearance, I can’t make the character any other shape. For example if I need them to wear gauntlets or armor, the armor would have to stay within the bounds of the character, because my shader can only alter the colors used.

So what the best way to approach this, or better yet how is it being done?

[ad_2]

Previous article Free Radical Officially Shutters | PSX Extreme
Next article New Shooter Looks Like Cuphead Meets Doom
Hello there! My name is YoleeTeam, and I am thrilled to welcome you to AmazonianGames.com. As the premier destination for all things related to Amazon Games' universe, we are dedicated to providing you with the most exciting and immersive gaming experiences out there. From captivating visuals to exhilarating gameplay, our website is packed with comprehensive insights, updates, and reviews to keep you ahead of the game. Whether you're a seasoned gamer or new to the scene, I am here to guide you through this virtual frontier. If you have any questions or suggestions, feel free to reach out to me at john@yoleesolutions.com. Embark on your Amazon gaming journey today with AmazonianGames.com and let the adventure begin!