Sign in to follow this  
Dolf

Sprite strips

Recommended Posts

Hello, I was thinking of creating a sprite strip tool so that an artist can say something like "this image is 300 pixels wide, 250 high, and there are 100 frames", and then it automatically takes the width and height and calculates the right offsets for use in game. Maybe add a string name to it so I only have to call "WalkAnimation" in the game itself. But I was wondering, hasn't someone already done this before? Or is there an easier approach? Cheers,

Share this post


Link to post
Share on other sites
SpriteBuddy is representational of one such alternative. Instead, you select the rectangular region for each frame of animation. A lot more flexible but a little more time and effort is required.

SpriteBuddy is free and decent enough but it's not quite perfect (the GUI could use a lot of work) and tends to crash when you least want it to.

Share this post


Link to post
Share on other sites
Normally in the projects I have worked on, the artist delivers the animations as separate images. I usually put these images together into a sprite strip using GlueIt. Then in my game's animation class I draw a region of that image to the screen based on the current frame.

Share this post


Link to post
Share on other sites
Thanks lack-o-comment, I'll check that out.

As to shadowisadog, how does your game know howmany pixels wide a single frame is? and how does it know how high it is? and howmany images are in there?? And howlong should it display the current frame?

My point is that I don't want that information in my executable, I don't want to recompile to change any of that, or have it scattered in .h or .cpp files, I want to have that in the file description ( by using a tool, even if i have to make it myself ). And only the class that loads the sprite will ever know about that.

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

Sign in to follow this