1
System / DeltaTime question
« on: June 27, 2011, 01:40:46 pm »
Lo-X - thanks for the reply but I think my problem is not whether deltaTime is in seconds or milliseconds. Indeed I tried it anyway and my sprite still does not display.
Just to clarify the sprite displays fine if I don't mutiply by deltaTime or I if I set deltaTime some value directly.
E.g:
Thanks.
Just to clarify the sprite displays fine if I don't mutiply by deltaTime or I if I set deltaTime some value directly.
E.g:
Code: [Select]
float deltaTime = 0.06;
sf::Vector2f moveVector;
moveVector.x = 10.f * deltaTime;
sprite.Move(moveVector);
window.Draw(sprite);
Thanks.