Issue with animated sprites

Hello!

I'm a student developer who has previously worked with AgateLib in the past (at least a year ago). I wanted to start a new 2D project, and decided to update to the new version. While I love the new features, I seem to be having some problems with animated sprites - namely, the sprite doesn't appear to increase the number of frames when I create a new sprite.

I have a png image of 270 x 23 and the following code:

btnSprite = new Sprite (imglocation, 90, 23);

However, the number of frames does not seem to increase - are the frames no longer automatically cut out like so?

Best Regards,

Christian Barrett

Thanks, the frames are now

Thanks, the frames are now there. Now I just need to remember how to animate them. Off to the documentation I go!

I really want to commend you for this fantastic library, too. If I ever get anything of note going with it, I'll post something here about it.

They should still be cut out.

They should still be cut out. I have reworked this algorithm a few times, but I remember at one point finding a bug where it wouldn't work if the height of the image was exactly the same as the height of the sprite frame. Try adding an extra row of pixels to the image so it's 270 x 24, but keep the sprite frame 23 pixels high and see if it is fixed. Otherwise it is a new bug (and in that case, please make an issue and attach the png file with a little bit of code).