How to change Jquery Animation course while animating?
<p>I have a small jquery game where turrets fire projectiles at other divs that have been animated to move across a field. My projectiles are fired to the last position the oncoming div was near so it never hits. What I need is a way to change the course of the projectile as its moving along and it will always hit the target then because its following it. By using the mothod below I can receive the current position of the projectile but I cannot modify it as its being animated. </p>

<pre><code>$(projectile).animate({"top":Y, "left": X},{duration:500, easing: 'linear',step: function( currentLeft,currentTop ){
 checkforenemies();
},  complete: function() {
    $(projectile).remove();

}});
</code></pre>

<p>Is there a way to modify the course of the animation within the step: function?</p>
