DEV Community

Dustin Runnells
Dustin Runnells

Posted on

Skeletons and Sprites!

When I first started working on this project I had some experience with sprite sheets. I did a quick test scene with an animated sprite using a sprite sheet and thought I understood what I needed and proceeded to work on the rest of the game leaving the sprite work for later. As it turned out, making an animated 2d sprite in a 3d game was not as trivial as I had thought. As mentioned previously, I want to just be able to feed a sprite "atlas" of some kind to the game (maybe from an NFT!) and have it just show up in the game for the random student selection when playing a level. To get there in 3d, I needed to make the Sprite3d in Godot have a viewport to a 2d scene that contained the animation. This seems to work, but hopefully it isn't too inefficient... it feels a little hackey! But very cool that Godot lets you do this! Lots of Inkscape and Gimp work this week with me trying to be an artist drawing this person.

I added some brick to the camera facing part of the building so that the walls look less thin and built a simple Student Editor to my level designer:
Image description

Demo:
Image description

You can catch a glimpse of a green "skeleton" student above. This was me playing with using multiple student designs. It is so awesome to be able to make an animation with bones and then stick the texture on top so I can just draw the limbs and the animations are built into the game without a huge sprite sheet with every gesture for every character design.

Top comments (0)