Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chainsaw_Rabbit

Pages: [1]
1
System / sf::clock doesn't work
« on: January 23, 2012, 08:45:40 am »
Quote
That's strange. In my mind it should say Quote:
cannot convert from 'sf::Time' to 'float'


 :oops:
Oh, I was testing around with integers (obviously it wasnt the solution) and posted the wrong error code, sorry.

Code: [Select]

clock.GetElapsedTime().AsSeconds();


Works! Thanks, you just made my day! :D

2
System / sf::clock doesn't work
« on: January 23, 2012, 02:27:58 am »
I have a few problems with sf:Clock, these two lines should usually work or did i something wrong?

Code: [Select]
sf::Clock clock;
float current_time = clock.GetElapsedTime() ;


I dont get it to work, instead I always get:


Quote
error C2440: '=' : cannot convert from 'sf::Time' to 'int'

Pages: [1]
anything