0

I want to lock from upgrade 2 and more so you cant bypass the upgrades. Also sometimes without buying upgrade 1 you can go -neg.

https://code.sololearn.com/W29Ys66w4989/?ref=app

23rd Aug 2018, 1:53 PM
hoirun
7 odpowiedzi
+ 8
https://code.sololearn.com/W8WXSuYD2X05/?ref=app
23rd Aug 2018, 2:17 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 6
if(clicks >= 50) bttn1.disabled = false; if(clicks >= 100) bttn2.disabled = false; probably this fixed because if you have 51 points and you buy first upgrade your points be 1 and it skips 100 because you add 2 2 dakikadır anlaşılır cümle kurmaya çalıştıktan sonra senin de Türk olduğunu öğrendim :(
23rd Aug 2018, 2:26 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 5
first - button | prints [object HTMLButtonElement] second - pnt increase amount third - upgrade price
23rd Aug 2018, 2:42 PM
Mert Yazıcı
Mert Yazıcı - avatar
23rd Aug 2018, 2:10 PM
Sousou
Sousou - avatar
+ 1
I am really new so sorry for asking newb questions. but Im trying to make a clicker game(for educational purposes) where you get stronger per click if you reach an amount of clicks. At 50 clicks the upgrade button works and i get 2 points per click. but at 100 points I cant click the upgrade button. (the button that needs 100 points). My english is not the best so I tried to explain it as good as possible, Thanks for the help!
23rd Aug 2018, 2:09 PM
hoirun
+ 1
Sousou , it didnt solve the problem for me but the one that mert sent me worked! i am now trying to understand what you guys have changed to make it work so I can learn from it. thanks everyone for helping me out, i think im gonna run into more problems for sure!
23rd Aug 2018, 2:19 PM
hoirun
+ 1
Mert Yazıcı ,haha sagol abi. Im Turk but I live in the Netherlands Im right now eating in Kocaeli, on my way back to holland. Benim Turkce iyi degil ama ogreniyorum ve anliyorum. The only thing I dont understand is the parameters in the function but ill try to google that. tessekur ederim!
23rd Aug 2018, 2:34 PM
hoirun