How to remove accelerometer or gravity or whatever this value in cocos2d?
-
08-12-2019 - |
Question
I am making a little game using cocos2d.
Now i want to remove value that is showing on my screen at left-bottom corner.
like this
Solution
[[Director sharedDirector] setDisplayFPS:NO];
It's the frame rate display.
OTHER TIPS
That is not a problem with your acceleration or gravity.. It's a Frame Rate. To remove that frame rate,try like this.
in AppDelegate.m
you can find the line like this..
[director setDisplayFPS:YES];
change it to:
[director setDisplayFPS:NO];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow