1
General / Re: Undrawing Sprites and Shapes
« on: July 19, 2012, 07:39:52 am »
Don't draw them
Have a bool or something, and when you don't want your sprites, set it false (or true..)
Example:
Or something like this.
Have a bool or something, and when you don't want your sprites, set it false (or true..)
Example:
// your main loop
// stuff here...handling input etc
if (drawSprites == true) // if this is false, then obviously your program will 'skip' this part
{
// draw your stuff here
}
// stuff here...handling input etc
if (drawSprites == true) // if this is false, then obviously your program will 'skip' this part
{
// draw your stuff here
}
Or something like this.