Once again I have came across a problem. There is a number with an up arrow and bottom arrow next to it. You click the arrows and the number goes up and down. But when I click one of the arrows, the number changes really fast. for dbMouseClick() you have to click it really fast to just change one number. Here is my code so far:
sprintf(textsets, "%d", sets);
dbPlaySprite ( 6, 1, 3, 100 );
dbSetTextSize ( 30 );
dbText ( 100, 200, "How Many Sets?" );
dbText ( 100, 300, "How Many Points per Set?" );
dbSetTextSize ( 40 );
dbText ( 550, 200, textsets );
dbText ( 550, 300, textpps );
dbSetTextSize ( 50 );
dbText ( 250, 425, "PLAY" );
dbSetTextSize ( 13 );
dbText ( 3, 462, "Go Back" );
dbSprite ( 87, 543, 176, 16 );
dbSprite ( 88, 572, 252, 16 );
dbRotateSprite ( 88, 180 );
dbSprite ( 73, 543, 276, 16 );
dbSprite ( 74, 572, 352, 16 );
dbRotateSprite ( 74, 180 );
MX = dbMouseX();
MY = dbMouseY();
dbChangeMouse(0);
if(MX >= 541 && MX <= 600 && MY >= 173 && MY <= 195)
{
dbChangeMouse(1);
if(dbMouseClick())
{
sets = sets + 2;
if(dbMouseClick() && sets == 7)
sets = 1;
}
}
if(MX >= 541 && MX <= 600 && MY >= 230 && MY <= 270)
{
dbChangeMouse(1);
if(dbMouseClick())
{
sets = sets - 2;
if(dbMouseClick() && sets == -1)
sets = 5;
}
}
Is there some way I can delay it from going on to the next number?