How do I get rid of the numbers in the bottom left of the screen when I am making a cocos2d game? This is probably a newb question, but still.
Just a heads up for people checking this out at a later date (like me). setDisplayFPS
is deprecated now. Use setDisplayStats
instead.
[[CCDirector sharedDirector] setDisplayStats:NO];
in AppDelegate.cpp file, and the applicationDidFinishLaunching method
// turn on display FPS
pDirector->setDisplayStats(true);
change true to false
for cocos2D 3.0
[[CCDirector sharedDirector] setDisplayStats:YES];
To show it only when compiling for debug:
#if defined (DEBUG)
[[CCDirector sharedDirector] setDisplayFPS:NO];
#endif
In appdelegate.m after didfinishlaunchingoptions.
[startUpOptions setObject:@(NO) forKey:CCSetupShowDebugStats];
setObject:@NO (It is YES by default).
There is a ShowFPS var in one of the files when you create the initial cocos project. But this should work from anywhere:
[[Director sharedDirector] setDisplayFPS:NO];