I am a big newbie in CLEO.
I want to declare 2 variables, and if i press key1 the first one will be incremented by 1, if i press key2 the second will be incremented by 1 and if i press key3 both variables will get the value 0.
And i also want the 2 variabiles to be shown on screen, under the money.
In c++ it will be like
int a=0,b=0;
if(key1 is pressed)
a++;
if(key2 is pressed)
b++;
if(key3 is pressed)
{
a=0; b=0;
}
How can I do this in cleo? + Show on screen.
I want to declare 2 variables, and if i press key1 the first one will be incremented by 1, if i press key2 the second will be incremented by 1 and if i press key3 both variables will get the value 0.
And i also want the 2 variabiles to be shown on screen, under the money.
In c++ it will be like
int a=0,b=0;
if(key1 is pressed)
a++;
if(key2 is pressed)
b++;
if(key3 is pressed)
{
a=0; b=0;
}
How can I do this in cleo? + Show on screen.