Why Nostr? What is Njump?
2024-09-17 10:33:34

Zergling_man on Nostr: When you spawn an object in godot, it assigns it a name in a reasonably predictable ...

When you spawn an object in godot, it assigns it a name in a reasonably predictable fashion, meaning that if you spawn a bunch of objects on a server and a client, randomise their positions, then tell them to sync, you will end up with the expected amount of objects for the code running once.
Next trick is to only run the spawn code on the server and use a multiplayerspawner to guarantee this, instead of having it one day blow up in my face when it happened to allocate names differently.
Author Public Key
npub140w8qr2g3ycwf5chj4y5g26j7k2df476pvm9c080cm8anz2uyc6savsu0k