Hi, I installed Felgo on 2 clients at home to learn about your Multiplayer communication and when I try to use your OneCard example, I experience following error in leader application output:
ReferenceError: message is not defined
when hitting the if line:
else if (code == messageTriggerTurn){
multiplayer.leaderCode(function() {
// the leader only stops the turn early if the requesting user is still the active player
if (multiplayer.activePlayer && multiplayer.activePlayer.userId == message){
triggerNewTurn()
}
Sender is not the leader and code looks like:
var userId = multiplayer.activePlayer ? multiplayer.activePlayer.userId : 0
multiplayer.sendMessage(messageTriggerTurn, userId)
console.debug(userId) before sendMessage prints a number, so its not undefined while sending
using ubuntu on both clients,debugbuild and I havent changed the sourcecode.