Basically, I’m trying to make it so when a property of an object doesnt change in a given amount of time, it will reset. When the player’s cash changes, a text shows up on their screen telling them the difference between the money they had before the cash changed. Like, ‘You made 25 dollars’. This text would update everytime the coins change again, ‘You made (50/75/100, etc) dollars.’ But if it doesnt update in
3 seconds, the text will fade.
Oversimplified, how do you make a time reset if a intvalue’s number changes.
So you wanna have a script that continuously checks a property to see if it has changed, & if it hasn’t changed after that time to reset, and if it has to do something else?
I’m trying to make it so when someones cash changes, a text pops up, telling them how much cash they lost/made. After a certain amount of time the text will fade. But if the value changes once again it will delay the fade time.
Can the reset begin if the fade has already started, or only before the fading has begun? And if the reset can occur mid-fade, how are you currently implementing the gradual fading effect?