   Help with my pause function (involves SDL help as well)
  Alright, I''m not asking how to make a pause function (I got that part down already) but I want it to say ''PAUSED'' in the middle of the screen when the game is paused. The user pushes ''P'' and the game pauses and ''PAUSED'' comes up in the middle of the screen.My problem? When I push ''P'' again, the ''PAUSED'' is still there. I was thinking, since I''m passing a char* into the function that draws the string to the screen, maybe I delete it when ''P'' is pushed again?   R.I.P. Mark OsbackSolo Pa Mi GenteVG-ForceEkim Gram Productions
  can you show me how you did your paused functionor can you email it to me?Jeremy_king@dell.com ;  why dont you just draw the background over it after the user un-pauses?? isnt this how you stop trailing effects when you move the paddles/ball anyway??? ;  maybe you could make a bool gamePaused; or somethingand only draw that paus thing when its true, so when you hit P the first time, voila gamePaused = true;and the second time.. gamePaused = false;or maybe thats a bad idea, i have no clue cause im not to good at programming ;  You can do it without even needing to know if the variable is true or false:bool GamePaused = false;//blahif(key[pause_key])   GamePaused = !GamePausedthen in your game loopif(GamePaused)    //draw the pause stringelse    //draw the background and any other game objects;  sweet that works like a charm 