+ 2

Help on buttons

How do you make a button when you push it it costs your points but you get 2x when you push the button after

27th Nov 2016, 11:15 PM
Richard
2 ответов
+ 1
function push() { var temp = 0; if(temp == 0) { // Your decrease code here temp++; } else { // Your 2x code. temp--; } } the temp variable secure how often the button was clicked.
27th Nov 2016, 11:42 PM
Max_N
Max_N - avatar
+ 1
Thanks!!!!!
27th Nov 2016, 11:45 PM
Richard