Happy New year folks,
I’m stuck in computing… here is what I have, simple stuffs:
totalAmount = 2250;
introTime = 5000;
currentValue = 0;
I’m trying to compute, the amount of value which should increase for a period of a 5s in a update method.
So, current Value, for a 1 second, should increase to 450
currentValue += totalAmount / (introTime / 1000)
The problem is, I’m increasing currentValue for 450 each time update occurs…