var power = 0;var pwrdown = 0;
while (power < 100)&& (pwrdown == 0){//do your stuff;power += TIME;....}else{//do your stuff;pwrdown=1;power -= time*0.25;}
Hope it helps
Trash
------------------program (pro'-gram) A magic spell cast over a computer allowing it to turn input into error messages.
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de