Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jonkbonker |
Hi,
I have a spritesheet of a “naked” character and spritesheets with armor and weapons that matches in animation frames. The goal is to draw these on top of eachother in-game so that the sprites with armor and weapons are on top of the character so that it looks like you have them equipped.
I know two ways to do this in principle:
1: Animate each sprite stacked on top of each other in real-time, switch out individual spritesheets for each piece of equipment as they are equipped/unequipped in-game.
2: Render the stack of currently active spritesheets to a surface that is not visible for the player and “screenshot” them, the screenshot becomes a single spritesheet of the fully equipped character that is used for the animation during gameplay. Render/screenshot again if equipment change.
Both methods have pros/cons (performance, how shader/effects can be applied, etc) and I would very much like to be able to do both. What would be the best way to go about it in godot? Are there any example projects/addons/scripts out there that does this?