Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › MultiplayerUser connected property change locally

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19577

    Sachintha Udara

    Hi There,

    Is there has any way to change MultiplayerUser`s connected property manually and change current player state in server side ?

    Cheers,

    Sachintha

    #19580

    Günther
    Felgo Team

    Hi,

    the connected property always reflects the actual state and is not changeable. To allow another player to get the slot, the old one has to be removed from the game. For slots where no player is not connected yet, it is possible to use VPlayMultiplayer::disablePlayer() or enablePlayer().

    You can also add custom logic to your game, to e.g. introduce a temporary “removed/left” state for a player which you can handle on your own, and which has nothing to do with actual connected state.

    Best,
    Günther

    #19582

    Sachintha Udara

    Hi Günther,

    How is it doing ? any possibility to extends vplay MultiplayerUser ?

    Best,

    Sachintha

    #19606

    Günther
    Felgo Team

    Hi,

    as said above, the connected property reflects the correct state and is not directly changeable. If you want to remove a player from a game, you can use VPlayMultiplayer::leaveGame().

    Best,
    Günther

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.