multiplayer kill delay on client when associated

0 favourites
  • 2 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • Problem Description

    in a multiplayer game, where one browser is host only and other browsers or browser tabs connect as players, when the playerobject is associated to the peer on the host, and that player object gets destroyed by the host (through destroy command directly or over health=0=destroy) it takes several seconds for the client to also destroy the object. if you disable said association the destroy command happens instantly on host and client.

    Attach a Capx

    see attachment

    Description of Capx

    the wreck chassis helps out as a base where the player(smoke, use "up arrow" for moving to the right) should respawn instantly after he gets killed by pressing "k" on the host browser. disable the associate blacksmoketopdown with multiplayer.peerid on the host side of the code and the bug is gone. but not associating makes multiplayer impossible right?...

    Steps to Reproduce Bug

    • Step 1: see "what the capx does"
    • Step 2
    • Step 3 etc.

    Observed Result

    few seconds delay to destroy player(smoke) on client if "k" is pressed on host and player is associated with multiplayer.peerid on host

    Expected Result

    player (smoke) gets deleted instantly on client and host on pressing "k" on host

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Opera: YES Operating System and Service Pack Win7 64bit SP1 Construct 2 Version ID Release173 64bit
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing, please only file bugs with the latest version of C2. You have indicated you are using r173 and we have fixed many bugs since then.

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