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

accelerometer value when using cocos2d

Was it helpful?

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
scroll top