What's the best way to chnage a node's parent in online multiplayer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Soul

So I need to change player’s and AI’s parents in online multiplayer, and doing it with remove_parent() and add_child() does work.

However, doing it so causes some problems when calling rset_unrealiable() to update the player’s position. It does work at the end, but the player flickers and rotates during the firsts seconds of changing its parent.

What would you recommend me?

The output

Rpc’s seem to only care about nodepath so try to always follow the grandparent → parent → child way of rearranging nodes

Wakatta | 2021-08-12 23:43

The nodepath it’s the same, however, during the frames it takes to change the nodepath in the client (I think) it get’s a bit buggy.

Soul | 2021-08-13 20:20