Big prob with Kayak game, rotation.

here is the
but if the animpos is 0-5 and the angle is bout' 360 or somthin' the kayak spins round' the other way and it makes the game look stupid
any help would be nice.
[/code]
and is there a way to use between codes like:
EDIT: oh, I feel stupid
I just figured it out. but it is choppy, I am still open to Ideas
Here is the Code now
- Code: Select all
if (animpos < angle)animpos += 5;
if (animpos > angle)animpos -= 5;
but if the animpos is 0-5 and the angle is bout' 360 or somthin' the kayak spins round' the other way and it makes the game look stupid


and is there a way to use between codes like:
- Code: Select all
if (animpos <10, angle > 350)animpos = angle;

EDIT: oh, I feel stupid



- Code: Select all
if (animpos < 7, angle > 353)animpos = angle;
if (animpos > 353, angle < 7)animpos = angle;
if (animpos < angle-7)animpos += 5;
if (animpos > angle+7)animpos -= 5;