1
Graphics / Insert images after App.Display();
« on: January 02, 2012, 01:09:56 pm »Code: [Select]
bool show;
App.Clear();
if(sf::Keyboard::IsKeyPressed(sf::Keyboard::A))
{
show = true;
}
if(show)
{
App.Draw(sprite);
}
App.Display();
EDIT: If you want the object only to show up while the key is still down, get rid of the boolean and the second if statement then put "App.Draw(sprite);" in the first if statement.