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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support