noise = 50;
function onEnterFrame(){
setInterval(Clock, m);
function Clock():Void {
noise -= 5;
clearInterval(Clock, m);
}
if (noise <= 0){
noise = 1;
}}
m = 1000;
All I want is a bar that constantly goes down by a value of 5 or something, and when you the player touches stuff it puts 50 or so up there, if the value gets past 100 he'll fail the game.
What it does is as soon as it starts, just goes straight to 0, and won't go up a number anymore, can someone help?