title: CoronaSDK rotating 3d sprite
body: <p>I am making a tower defense game and I have a sprite thats kind of 3D in the angle it has been rendered. I have an issue that I cannot figure out how to solve.</p>
  
  <p><a href="http://lukestirk.com/A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i6Ic7.png" alt="Image"></a></p>
  
  <p>I need to rotate the sprite smoothly to face the enemy it is firing at. At the moment it gets the angle between the turret and the enemy and sets the sprite for that angle, so if the angle was 140 degrees i would play the 140 degrees firing sequence. The problem with this is it will jump straight to that angle so if the last place the turret fired was at 270 degrees and the next enemy is at 120 degrees it will jump straight to that angle.</p>
  
  <p>Any ideas how I can rotate the turret every 5 degrees between the last played sequence and the sequence for the next angle before the tower begins firing? So last played is 270 i need to go to 140 so i would play the frames for 265, 260, 255.......150, 145, 140</p>