I'm trying to make it so that when the screen is swiped a certain direction (left, right, up, down), the player, which is a tile, slides down a certain amount. I've tried many different numbers using Time.deltaTime an other random numbers for different speeds, but the only one that lands perfectly on the number I want is 0.01 (the number it changes by is 0.83). Any other number will go over or under what its supposed to. But 0.01 is too slow. Any way to make it land on the exact number?
↧