What is the best way to implement a shoot accuracy system where in a horizontal bar a gun sight moves from end to end having the player to stop the gun sight in a certain area to hit the shot?
Should i use Lerp? The problem is that as time goes by i want the speed to increase
Please help me
I wouldn’t say that this is the “Best Way”, because that is subjective. But, Why can’t you use that lerp function, but multiply the time value by a “speed” variable to increase the rate it moves left to right up to some cap speed? Ofcourse you will have to clamp it, but all the same, it should work. a lerp takes in 2 values(points), and a (t) time. Just spike the time by some amount. An example would be to have some variable, float Magnitude += (Factor)(Time.deltaTime); Lerp(A,B, t *magnitude). Then just clamp and adjust values. Hopefully this makes sense.