I just wanna be straighforward. I read a dozen of articles talking about game loop, components, modules, structures, time control, etc...
But, in the end I'm still somewhat confused of how animation actually takes place in the game flow...
Explicitly: Each time the render() assumes command It may render (say) a player sprite (in 2D game). The player "animations" would be expanded in a spritesheet (?) and player object may hold it's state and frame. Say "running" frame 'n'. So the render will render that sprite.
Is that it?
If so, how should I control the actual frame when using a time based game loop (for fps control)?
How do I sinc that with the update variables (x and y position) of the player itself. That will mean that the character will "slide" until next frame (in a walking sequence)...?
Comments, pseudo-codes and maybe a link to a more deep-in article concerning these issue is appreciated... ;)