1
System / [Help] I don't understand sf::Time, sf::Clock
« on: November 03, 2019, 08:47:23 pm »
Hello everyone !
I'm new on this community-platform and this is also my first post, so please be gentle.
I'm using a SFML blueprint for my project, but I don't understand everything in it. By that, I mean specifically sf::Clock and sf::Time. I have spent so much sf::time (haha, get it?) reading and trying to understand it, that I in the end gave up and came here for help.
This is the blueprint I'm talking about: read attachment.
Now, there're two while-loops in it. The red is just for keeping the window open/program running, but the yellow one has something to do with time. Mind explaining?
Also, I want to create a timer. That show the time in seconds and gets reset if time is X.
I'm new on this community-platform and this is also my first post, so please be gentle.
I'm using a SFML blueprint for my project, but I don't understand everything in it. By that, I mean specifically sf::Clock and sf::Time. I have spent so much sf::time (haha, get it?) reading and trying to understand it, that I in the end gave up and came here for help.
This is the blueprint I'm talking about: read attachment.
Now, there're two while-loops in it. The red is just for keeping the window open/program running, but the yellow one has something to do with time. Mind explaining?
Also, I want to create a timer. That show the time in seconds and gets reset if time is X.