Ok I will clarify,
As a test I first created the following:
sf::Clock clock;
sf::Time time;
time = clock.getElapsedTime();
while (Window.isOpen()) {
sf::Event Event;
while (Window.pollEvent(Event)) {
sf::Time t1 = sf::seconds(10.0);
time = clock.getElapsedTime();
std::cout << time.asSeconds() << std::endl;
std::cout << t1.asSeconds() << std::endl;
if (time.asSeconds() >= t1.asSeconds()) {
std::cout << "player 1 is drawn";
}
With this code I do in fact get "Player 1 is drawn" on the console after 10 seconds. However when I place the following code,
Window.draw(PlayerTwo); in the if statement and i already defined the sprite image and texture before in main. Nothing gets drawn on my window. What is going on here? There are no errors too.