i want to have a working progress bar in my game...
for example i want to have a "mana" bar. if i cast a big spell, it will take 100 mana points (maximum), then mana will be automaticly restored for 2 minutes. when it will be full again (100 points), it will be possible to cast this spell again.
can you help me how can i do this?