I’ve posted this YouTube video: link to YouTube video of animation. The question is: does the speed of the arrows increase as the distance to the target decreases? Or, is it an optical illusion?
Here’s the animation code (in Update()):
// increments animation of firing
if (DrawingFiringArrow)
{
timeSinceLastFiringAnimation += gameTime.ElapsedGameTime.Milliseconds;
if (timeSinceLastFiringAnimation > millisecondsPerFiringAnimation)
{
timeSinceLastFiringAnimation -= millisecondsPerFiringAnimation;
FireArrowIncrement++;
if (FireArrowIncrement < FiringArrowPath.Count - 5)
{
FireArrowIncrement++;
}
else
{
FireArrowIncrement = 0;
System.Threading.Thread.Sleep(10); // add a delay between repeats?
}
}
} // if (DrawingFiringArrow)
Anybody have thoughts on this? Do I need to slow down the animation the shorter the loop?