So I have been working on a dash for my third person game. The dash looks amazing and I have already fine-tuned the values for the perfect dash distance, but I noticed that the dash is different based on window size. For example, if my window isn’t full screen, the dash is about 10 blocks/units. But as soon as I make the game full screen and dash, the player dashes about 30-40 blocks/units. It really makes it difficult and I can’t seem to figure out why it does that. Any help? The dash code looks something like this
IEnumerator dashmoveforward(Vector3 movedirection) {
float startTime = Time.time;
while (Time.time < startTime + dashtime) {
controller.Move(movedirection * dashstrength);
yield return null;
}
}