Good day, I'm new to AppWarp. After trying my game in two player mode. The two players was able to connect for the first game. But on the the second game, one player can join a room immediately while the other can't. returns an onConnectDone: false Your help would be appreciated. Thank you.
if (target.getY()<=0){
if (Target.a1 == 1) healthGreenm -= 0.1f;
else if (Target.a1 == 2) healthRedm -= 0.1f;
else if (Target.a1 == 3) healthPinkm -= 0.1f;
else if (Target.a1 == 4) healthBluem -= 0.1f;
if (healthBluem<=0 && healthGreenm<=0 && healthPinkm<=0 && healthRedm<=0){
//handleLeaveGame();
WarpController.getInstance().stopApp();
onGameFinished(WarpController.GAME_LOOSE, true);
return;
}
}
public void onGameFinished(int code, boolean isRemote) {
scorem = 0;
if(isRemote){
prevScreen.onGameFinished(code, true);
}else{
if(code==WarpController.GAME_WIN){
//world.state = World.WORLD_STATE_NEXT_LEVEL;
}else if(code==WarpController.GAME_LOOSE){
//world.state = World.WORLD_STATE_GAME_OVER;
}
}
//WarpController.getInstance().handleLeave();
WarpController.getInstance().stopApp();
}