Auto clicker for my clicker game
I need to get an auto clicker working ~~js alert("This game is currently under development -still works-, NEW VERSION!!!!!! V1.1.9 - More Updates Comming soon!, About this version: V1.1.9 : Click ' update history' for More info! ~~comming soon~~ bug fixes, more upgrade items (maby save/load???)") //Update this every version! var chicken = 0 var cPC = 1 var cPCPV = 50 var saveC = 1 document.getElementById("chicken").innerHTML = "Chickens: " + chicken; document.getElementById("uCPC").innerHTML = "Upgrades: " + cPC; document.getElementById("rCFCPC").innerHTML = "Costs: " + cPCPV; function add() { chicken = chicken + cPC console.log("You Have:", chicken, "chickens!") document.getElementById("chicken").innerHTML = "Chickens: " + chicken; }; function cPCF() { if (cPCPV <= chicken) { cPC = cPC + 1 chicken = chicken - cPCPV cPCPV = cPCPV + 25 console.log("Your chickens per click = ", cPC) document.getElementById("chicken").innerHTML = "Chickens: " + chicken; document.getElementById("uCPC").innerHTML = "Upgrades: " + cPC; document.getElementById("rCFCPC").innerHTML = "Costs: " + cPCPV; } else { alert("Not enough money!") } }; function Info() { alert("Click the ckicken button, and earn lots of chickens!"); } function uH() { alert("V1.0.0: Only +chicken, and upgrade slot side. V1.0.1: Added Info button, & -bug fix- other versions soon to come. V1.0.2 added Update History! V1.0.3: Start up Page shows chickens count, and upgrades for chickens per click! V1.0.4: When you click buy, it will not give you a -#. V1.1.4: Cost goes 25 chickens up for chickens per click! V1.1.5: Cost goes 50 chickens up for chickens per click! V1.1.6: Bug Fixes. V1.1.6: Chicken per click up