Seconds on Interpolate
DrGlickert
Member Posts: 1,135
So, in light of my recent introduction to the superiority of INTERPOLATE over a TIMER I have a minor question about the "seconds" of interpolate.
I essentially want a power-up to last 20 seconds. So here's how I'm doing it. If the player gets the powerup I have an integer-game.attribute set up to change.
I have a rule that does the powerup ability as long as said integer-game.attribute is greater-than 0.
Is it best to have the integer.game.attribute changed to 20 and then the INTERPOLATE behavior does 20 to 0 over 20 seconds.
OR
is it okay to use a REAL attribute instead and have changed to 1 and then INTERPOLATE 1 to 0 over 20 seconds?
Any thoughts? Does it really matter?
I essentially want a power-up to last 20 seconds. So here's how I'm doing it. If the player gets the powerup I have an integer-game.attribute set up to change.
I have a rule that does the powerup ability as long as said integer-game.attribute is greater-than 0.
Is it best to have the integer.game.attribute changed to 20 and then the INTERPOLATE behavior does 20 to 0 over 20 seconds.
OR
is it okay to use a REAL attribute instead and have changed to 1 and then INTERPOLATE 1 to 0 over 20 seconds?
Any thoughts? Does it really matter?
Comments
And yeah once you get the hang of interpolate you will always look for ways to use it instead of a timer. Not always possible but a lot of times it is.