We focus on the development of applications that run on mobile platforms such as iPhone, iPad and Android. Goodboy Studios is a full service partner to turn your ideas into reality.

0

Cocos2d and OpenFeint

We’ve lately been struggling with integrating OpenFeint with Cocos2d. Before we decided to go with OpenFeint we also tried Agon and Scoreloop. All those frameworks are not working properly when use FastDirector. The problem is that all touches is “swallowed” by Cocos2d and the other frameworks is not working properly.

To solve this you could disable the use of fastdirector. But in ours and many others case, we need the fastdirector to keep the framerate acceptable.

To solve this in OpenFeint you add the following in the OpenFeintDelegate.

- (void)dashboardWillAppear

{

[[Director sharedDirector] pause];
[[Director sharedDirector] stopAnimation];

}

- (void)dashboardWillDisappear

{

[[Director sharedDirector] resume];
[[Director sharedDirector] startAnimation];

}

The same principle can be used in all other frameworks.