Hi i've recently been using c++ and sfml and have edited the pong example to include a score to 7 and then displays the text like in the example. I wanted to add the R button to reset and it does what i want it to do apart from when it resets the win or lose text is still displaying. I tried using App.clear but that didn't work. Could anyone help me out.
Thanks
if((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::R))
{
App.Clear();
p1_score = 0;
cpu_score = 0;
AITimer.Reset();
Restart = true;
}