I can't tell if I am being stupid, but I am looking for a way in Gamemaker to have a variable include a modifier which has the potential to change every step.
This variable is called mTiredness
, and I would like it to include the TimeOfDayModifier
which needs to be checked frequently.
However, I obviously can't put
mTiredness = mTiredness + TimeOfDayModifier
in a Step event, as this would add the modifier, in my case, 60 times a second, which I do not want!
Instead, I want a consistent variable comprised of the base amount and the modifier, while allowing that modifier to change.
Can anybody help me? I cannot think of an easy way to do this.