How do I sync local input prediction with pinned object?

0 favourites
  • 2 posts
From the Asset Store
112 High-Quality destruction sounds for videogames
  • I have a peer object that has a pinned sprite with a turret behavior on top. Enabling local input prediction for the peer object makes it so that the turret's position is out of sync.

    I've tried enabling local input prediction for the turret, no difference. I can't seem to find anything on this issue, what could I be overlooking? Thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I haven't tested this myself yet, but my guess is that pinning behavior position updates every tick, while the multiplayer object only sends updates at 30 frames. Normally when using local input prediction and sending client input updates, you would only trigger local movement on client update, which happens at 30fps, rather than every tick, which is what the pin behavior would do at an attempted 60fps.

    To resolve, you could try either turning on LAN mode with the set bandwidth profile action (not recommended), or set up control and movement the pinned object manually, like you would the base object.

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