+ 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
2 Réponses
+ 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.
+ 1
Thanks!!!!!