Immediate Knockback?

Options
I've made other players get knocked back after being hit, but it's delayed and looks choppy because of synchronisation. How should I go about fixing this?

Answers

  • Bump

  • Tobias
    Options
    There is no way to avoid lag / delays. Worse: To a degree, the lag is variable through a game's play time...
    When the hit arrives, you can also apply the knockback. This is when this effect is "official".

    If the simulation allows this, you could attempt to "predict" the knockback locally, assuming that some update for the hit will come in anytime soon. This hides the lag.

    We can not provide a full blown solution for this, as it depends a little on the game / action. With PUN, this is something you have to solve. Sorry.

    Hints about this can be found / discussed in the Photon Discord:
    https://discord.com/invite/WytN33P