Original Post
Hey, I've been trying to follow some SDL sprite tutorials, but i'm having trouble grasping the concept of working with sprites. What I don't understand is, how does changing the frame typically work? All the tutorials I've seen use a struct: typedef struct { SDL_Surface *Frame; int pause; } Sframe; where Frame is a pointer to the frame, and pause is the amount of time to wait until changing it. Is it conventional, with each iteration of the game/message loop, to check each sprite and compare it with the current system time? and then change the frame if necisary? Or is there another way? Thanks a lot :)