Stupid question about interpolate?
Hey guys,
I have a stupid question, I think that it is stupid but I don't know why it doesn't work.
I have three attributes: Level time, Level score and LevelFinished Attribute.
1,
When LevelFinished is true
Time is under 10
score is greater than 50
interpolate score to score +50
2,
When LevelFinished is true
Time is under 10
score is smaller than 50
interpolate score to score +20
But somehow it always interpolate to +50? I just replaced interpolate with change attribute and it worked...I am just using interpolate because the effect is cooler
Can somebody tell me why this is happening? I checked the attributes multiple times in the game...displayed them
thanks,
Alex
I have a stupid question, I think that it is stupid but I don't know why it doesn't work.
I have three attributes: Level time, Level score and LevelFinished Attribute.
1,
When LevelFinished is true
Time is under 10
score is greater than 50
interpolate score to score +50
2,
When LevelFinished is true
Time is under 10
score is smaller than 50
interpolate score to score +20
But somehow it always interpolate to +50? I just replaced interpolate with change attribute and it worked...I am just using interpolate because the effect is cooler
Can somebody tell me why this is happening? I checked the attributes multiple times in the game...displayed them
thanks,
Alex
Answers
Interpolate changes a value over time. So say score is 50. 50+20 would be 70. When the score starts to interpolate it would then say 52. 52+20 is 72. The value constantly changes.
So what you want to do is change another attribute to score+20 and interpolate to that attribute.