Seconds on Interpolate

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
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?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Really doesn't matter as long as you rule is to function greater when greater than 0. I would use an integer though as i'm told it is slightly better on performance that a real attribute.

    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.
Sign In or Register to comment.