Calculate time between touch input?
![fordee](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hey guys, first post here, just starting out learning GameSalad.
I was curious to know if there is a way to calculate the time between touch inputs received and then average that number? And then if possible, weigh the average of the 4 more recent inputs heavier than any previous inputs? (ex: time between first and second 'tap' (touch input) is 1 second, then between second and third is 3 seconds and between third and fourth is 5 seconds... if averaged we would come up with 3 seconds).
However what if there are 5-10 taps, could you weigh the last 4 inputs higher in some type of algorithm?
Thanks in advance for any advice/input.
Fordee
I was curious to know if there is a way to calculate the time between touch inputs received and then average that number? And then if possible, weigh the average of the 4 more recent inputs heavier than any previous inputs? (ex: time between first and second 'tap' (touch input) is 1 second, then between second and third is 3 seconds and between third and fourth is 5 seconds... if averaged we would come up with 3 seconds).
However what if there are 5-10 taps, could you weigh the last 4 inputs higher in some type of algorithm?
Thanks in advance for any advice/input.
Fordee
Comments