how do you make a button that will perform 1 action the first time that you click it, and a different action the 2nd time, and the 3rd time......
also, how do you chage the color of an object when you click on a button?
If (var == 0)
{
var = 1;
do stuff;
}
else if (var == 1)
{
var = 2;
do other stuff;
}
and so on....
action_nr=0;
if(action_nr==0)
{
//do the code you want
}else
if(action_nr==1)
{
//do the other code you want
}else
if(action_nr==2)... and so on
...
action_nr=action_nr+1;
Users browsing this forum: No registered users and 1 guest