I've been toying around with moving a sprite around the screen with WASD (A and D for strafing, W and S for forward and reverse) and using the mouses' X axis for the rotation.
However, in my test runs I've noticed that if I'm moving forward and strafing at the same time, the velocity increases to more than the max velocity in a single direction. I've figured the problem out, but I can't figure a way around it. Besides, the way I'm going about it probably isn't the right way :-)
Now.... anyone care to school me how this is done?
However, in my test runs I've noticed that if I'm moving forward and strafing at the same time, the velocity increases to more than the max velocity in a single direction. I've figured the problem out, but I can't figure a way around it. Besides, the way I'm going about it probably isn't the right way :-)
Now.... anyone care to school me how this is done?