Answer the question
In order to leave comments, you need to log in
How to increase/decrease different numbers at the same rate?
I will try to explain what was planned - for example, there are three numbers with a start and end point
0.2 -> 1.2
0 -> 250
50 -> 1278
Answer the question
In order to leave comments, you need to log in
each timer step (any interval of your choice) you calculate the current value of the variable:
current value = start_value_of the variable + (end_value_of_the variable - start_value_of the variable)*(difference between the current time and the start time in seconds/length of the entire interval in seconds)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question