I was just testing an idea out before of using batteries that have their own decrease speed, the only thing is I can only manage them to zoom all the way down from 100 while increasing their speed.
For example; I wish for the battery object to be able to start off with a value of 100, but then gradually work it's way down to 0.
The only way I know of doing this (which is unsuccessful) is by:
power = 100;
power -= 1;
I know this is the wrong way to do this, and I have tried searching for solutions but I'm just unsure of what way I am supposed to design this?
I also tried using an alarm to slow down the value decrease, but the alarm only worked once.
So if anyone could please point me in the right direction, I would really appreciate it.