private void Movement()
{
float RadianAngle = MathHelper.ToRadians(RotationAngle);
MovementX = (float)Math.Cos(RadianAngle);
MovementY = (float)Math.Sin(RadianAngle);
playerPosition.X += playerSpeed * MovementX;
playerPosition.Y += playerSpeed * MovementY;
}
This is just so that I can determine the direction to move, however it probably isn't write. Also, in case you were wondering, I tried rotating the picture itself to the left so that it would at least go up, no luck, it then went backwards. I also tried rotating it in game to the left, then it went up, but with the triangle pointing left. When I rotate the picture to the right instead, it works, but I can't have my player starting facing to the right every level. Thanks for the help!

New Topic/Question
Reply


MultiQuote




|