u/DjamyK

Energy drain system?

Hello, my name is Djamy and i'm working on cool command powers like for example, a water based magic power, cosmic manipulation magic and way more that i will share once done.

Though i need some help on some kind of energy system.The idea is to have a constant display on the action bar that shows an ammount of energy a player has. Using a move of a magic triggers that energy to drain a bit. and having it slowly regenerate to a certain ammount( for example a player has an energy cap of 100 and using a move drains it to 85 and then it will slowly regenerate to 100 again). i have tried making this myself but i just can't get it right so i have turned to this community to ask if someone here had made something like this and if they could share how to create a system like this.

Thank you all in advance.

reddit.com
u/DjamyK — 20 hours ago