Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.60/5 (3 votes)
See more:
Ok, so i want to make a clicker and i can figure it out just not upgrades like: clicking power, money per second and stuff like that so i can make a counter i can style everything i know how to use variables but i NEED the upgrades.

What I have tried:

i have tried to use "document.getElementById().onclick = function enoughtCoins?(){

if(counterVal>=10){
decreaseCounter ()counterVal=CounterVal-10
alert("purchased")"
but what that does is it multiplies the price everytime you click it and i don't want that
Posted
Updated 6-Feb-22 11:51am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900