Basically, whenever I have my object "jump" (player hits the up arrow) I add 1 to an integer "level." I want to use this int in another class in the form of
if(level>10)
{
//perform some action
}
However, I get the error
"cannot find symbol - variable level"
Does anyone know what to do about this?