0

I have integrated nextpeer in cocos2d game.

I used below call to end game. But nextpeer not showing end of game view if game ends within 60 seconds.

-(void)callNextPeerTournamentOverWithScore:(int)score
{
    if ([Nextpeer isCurrentlyInTournament])
    {
        [Nextpeer reportControlledTournamentOverWithScore:score];
    }
}
Guru
  • 21,652
  • 10
  • 63
  • 102

2 Answers2

1

What is the type of the tournament? Tournament type should be 'Game Controlled' if you want to end the tournament at any time. You can edit tournament type using their website.

Note: Default tournament type is 60 seconds.

shahid-rasheed
  • 509
  • 2
  • 8
  • how can reduce 60 seconds to dynamic depending on game play ? – Guru Mar 15 '13 at 10:57
  • 1
    Change tournament type to 'Game Controlled' to make it dynamic and place your own timer on your hud layer. In multilayer mode, all players can't set different tournament times to end the whole tournament at same time. – shahid-rasheed Mar 15 '13 at 11:16
0

I got solution from shahid-rasheed..Thanks. All we need to do is just change tournament type to 'Game Controlled' in next peer.com not in code.

enter image description here

Guru
  • 21,652
  • 10
  • 63
  • 102