360 degree rotating actor
Posted: Thu Apr 26, 2007 2:35 am
... I've changed some actor animations from a 24 frame animation to 36 (for 360 degree rotating objects) but it seems now that though the objects do rotate to face the desired target, the flicker back and forth between two frames... I've tried: (draw actor)
animpos = nframes*direction(x,y, player.x, player.y)/360.0;
&
angle=direction(x,y,player.x,player.y);
animpos=angle/360*nframes;
So whats the deal!?! My frames (filenames) range from XXXX_01.png - XXXX_36.png
I thought that frame 36 is actually the same as 1, so I tried deleting it and using 35 frames (just in case) but nothing seemed to change... Anyone?
animpos = nframes*direction(x,y, player.x, player.y)/360.0;
&
angle=direction(x,y,player.x,player.y);
animpos=angle/360*nframes;
So whats the deal!?! My frames (filenames) range from XXXX_01.png - XXXX_36.png
I thought that frame 36 is actually the same as 1, so I tried deleting it and using 35 frames (just in case) but nothing seemed to change... Anyone?