Reducing bullets every single time mouse is clocked
How do you make the bullets reduce by one everytime u click one time.
This is what i have tried so far
function duckGame(evt:MouseEvent):void
{
bullet = 20;
bulletsTxt.text = bullet.toString();
}
function setBullet():void
{
bullet = bullet - 1;
bulletsTxt.text = bullet.toString();
}
If possible can u give me the code as i am not very sure how to do it.
