Hi, new to scripting. Been going through tutorials and flash help file for days and I’m still wrapping my brain around learning it. I’m trying to make a countdown loop in which for example your maxhealth is 100. If it goes below 100 a countdown starts for say 60sec. At the end it will add 1 point to your health and restart the countdown. Basically regenerate over time. I’m sure this is a simple process but not sure if I use the
var i:Number; for (i = 0; i < 100; i–) loop or put the countdown in a movie clip and have it play the movie clip if health gets below 100. I need the countdown to show up in a dynamic text as well. I’ve fiddled with the countdown function examples and can get it to go to zero but need it to start over after it’s checked the health. I can’t seem to find an example anywhere and keep trying ways but I’m still getting use how the code works and the order of operations so to speak. BTW i’m working in AS2. if that matters.
Thanks in advance for the help.