issues
search
Son-Guhun
/
Titan-Land-Lands-of-Plenty
A WC3 sandbox roleplaying map inspired by those that came before.
MIT License
10
stars
0
forks
source link
Saving over-time effects
#168
Open
Son-Guhun
opened
4 years ago
Son-Guhun
commented
4 years ago
Must use a timer that is precise (power of 2)
Save the current gametime + the preriod. Formula => x = gametime + n*period. Using a negative n we can calculate the next moment to play an animation even before gametime is reached.