Author:: Jordan Micah Bennett///This tip assumes that you`ve covered severely basic ground in SDL./// //////////////////////////////////////////////// Ok. Here is an example done in animation. /////// class controlableCharacter{etc, etc}; void controllaleCharacter::controllableCharacter( if(velocity > 0) { status = moveRight; SDL_Delay( 100 ) frame++;}//the sleep causes indep. move no matter the fps!!


CategorySDLGeneral

SDLWiki/EditorQuickStart (last edited 2009-07-11 19:01:55 by port0123-acl-adsl)