I've looked over most of the questions posted here and no answer was really clear enough for me to be confident with global variables.
What I am thinking a global variable is, is just a variable that is declared in
@interface HelloWorldLayer : CCLayer
{
//global variable goes here
NSString *string;
}
And now I can use this variable in any method.
Is this correct or am I wrong.