How to show different skins in multiplayer?

0 favourites
  • 5 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hello! I have a multiplayer created with the default Real Time Multiplayer template.

    I also have a database created in FIREBASE.

    The problem is the following:

    Each player has a different skin, but when you enter multiplayer they all have the same skin or they all look the same.

    There are also times when you have your own skin, but all other players look the same.

    What is the problem? How can I solve that?

  • Sync an instance variable on the player object(s) that identify the skin they are using. Have each client set the proper animations/skin based on the instance variable.

  • the player already has an instance called skin.

    the host sometimes receives its specific skin.

    but the peer (player) always has the default skin.

    At what point should I give it the skin for when a player object is created that doesn't always have the default skin and gets the specified one?

    skins:

    0 = warrior (default)

    1 = archer

    2 = goblin

    Instance:

    Skin = 0

  • If the instance variable is synced properly, I believe you should be able to set it on created.

    If not, simply start with the object invisible by default, and make it visible and set the skin when the instance variable is updated/synced.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'll investigate the synchronization, thanks for answering!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)