1
System / creating a spin-down timer
« on: March 20, 2013, 07:02:33 pm »
Any advice on how to create a spin-down timer?
Ive got an animation running at speed x and i want it to slowly spin down to 0 then stop
im pretty sure it is going to involve three elements like
Im using Foalys animation class, so that may have a small/big influence on how to handle this problem.
Ive got an animation running at speed x and i want it to slowly spin down to 0 then stop
im pretty sure it is going to involve three elements like
sf::Clock sysClock;
sf::Time tInitial;
sf::Time tDelta;
sf::Time tTotal;
tInitial = sysClock.restart();
tDelta = sf::Seconds(0.02f);
tTotal = (some math operation combining tInitial and tDelta so i can ramp the animation down)
sf::Time tInitial;
sf::Time tDelta;
sf::Time tTotal;
tInitial = sysClock.restart();
tDelta = sf::Seconds(0.02f);
tTotal = (some math operation combining tInitial and tDelta so i can ramp the animation down)
Im using Foalys animation class, so that may have a small/big influence on how to handle this problem.