xxxxxxxxxx
//intializing the score
int scale, score=0;
//drawing the score as a text and need positional arguments
void draw(){
textSize(20);
text("SCORE: "+score,100,100);
//if a action or statement is fulfilled
if (action){
score++;
}
}
//adds one to the printed score once the action has been fullfilled