I should say first, that I have the rotation down. Its just that I want my square to rotate exactly 180 degrees. Currently, it will rotate but it will rotate but by less each jump. So after several jumps it will be moving on one of its side. There's not much code to show but I'll show you how I'm rotating:
if (jumped)
{
roation += 0.1f;
playerVel.Y += gravity;
}
I haven't initialized rotation to anything. I've also tried using some Math functions but I just get the same result.