Hi,
Does anybody know how to "store" the value of a variable, and then compare the same variable to that value a little while later.
For example, in my game, when the player completes a quest, I would like them to have to wait five days before they receive another. The days are stored in a variable.
Or, when a player plants something, they have to wait ten days for it to grow. Every day, the game compares the day that the plant was planted, and the current day.
If there's a difference of ten, then the plant is harvestable.
Does anybody know how to "store" the value of a variable, and then compare the same variable to that value a little while later.
For example, in my game, when the player completes a quest, I would like them to have to wait five days before they receive another. The days are stored in a variable.
Or, when a player plants something, they have to wait ten days for it to grow. Every day, the game compares the day that the plant was planted, and the current day.
If there's a difference of ten, then the plant is harvestable.