*Sigh*.... Alright I want to keep a certain thing to keep drawing for 3 seconds & have my player move on a delta, but! When I try to do all this it ignores time itself. So when I try to do a std::cout to see whats going on, it tells me 3e-006 or some other number and never changes.
I got 2 scenarios here trying to show the time as a example and it does the same thing for me:
it will display on the console like: 3e-006 3e-006
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Keyboad Events");
window.setFramerateLimit(60);
sf::Clock Clock;
sf::Time Time = Clock.getElapsedTime();
while(window.isOpen())
{
sf::Event event;
while(window.pollEvent(event))
{
float time = Time.asSeconds();
std::cout << Time.asSeconds() << " "<< time << std::endl;
if(event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.display();
}
}
Some major help is required here...