Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 05 Dec 2012
Offline Last Active Dec 05 2012 08:03 PM

Topics I've Started

SDL Animation when using large sprite sheets

05 December 2012 - 08:03 PM

Hi everyone I am new to gamedev.net, I am working on a super mario style game. I have used sites such as lazyfoo.net and sdltutorials.com. to get information. The problem I am trying to solve is that I have a sprite image each frame for the sprite is 64x64 pixels the sheet is set up in 5 columns the rows are for each animation state such as standing, walking and jumping all have a different number of frames depending on what the animation is.

From Looking at lazyfoo's site his animation tutorial looks like you have to set the position of each frame individually. My image has 64 frames of animation. I am looking for another way of cliping the sprites.