Hello, in the tutorial is a methode described to control the gamespeed without framelimiter... I have tried it, and to change the degrees of my angel var, to rotate the texture, it works.. but to walk forward / backward i use an complex calculation with degrees and radiants, and i dont know, where I should use the method to control the gamespee (GameSpeed * Game->GetFrameTime())
here is my calculation:
if (Game->GetInput().IsKeyDown(Key::Up) && HitStart == false && PosX > -15 && PosY > 5 && PosX < 972 && PosY < 738)
{
Backward = false;
X = 5 * cos(0.0174532925 * (Angle + 90.0));
Y = 5 * sin(0.0174532925 * (Angle + 90.0));
PosX -= (int) X;
PosY += (int) Y;
}
need help please, sorry for my bad english >.<