Js Function Editing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Js Function Editing

So I have my code, but I want it to be if you purchase a certain thing in the clicker shop it will increase the amount per click, but how will I edit the function to add more per click once you active the addMore1 function by pressing a button.

14th Jul 2018, 1:52 PM
Sawyer
Sawyer - avatar
8 Answers
0
Sorry, which code?
14th Jul 2018, 9:55 PM
Janning⭐
Janning⭐ - avatar
0
its on Web Code - WIP
14th Jul 2018, 9:57 PM
Sawyer
Sawyer - avatar
14th Jul 2018, 10:55 PM
Janning⭐
Janning⭐ - avatar
0
yes
14th Jul 2018, 10:55 PM
Sawyer
Sawyer - avatar
0
i need to add a function that will make the clickMe() add 2 clicksinstead of one if you have enough.
14th Jul 2018, 10:56 PM
Sawyer
Sawyer - avatar
0
If you have enough ... ?
14th Jul 2018, 10:57 PM
Janning⭐
Janning⭐ - avatar
0
so its a clicker
14th Jul 2018, 10:57 PM
Sawyer
Sawyer - avatar
0
it will detect if clicks <= 100 then it will make it when you run clickMe() it will add 2 not 1 clicks.
14th Jul 2018, 11:00 PM
Sawyer
Sawyer - avatar