Hi all, I’d like your thoughts on how should I design this next part of my game, if:
1- Am I on the right path and what are the Nakama functions to it?
2- Or am I totally wrong and what should I be pursuing then?
The part I need help with is the following:
-
It’s an asynchronous multiplayer scene, from a racing game. After the player runs a race, it’s “ghost” data is stored to the Storage server. That part is pretty straightforward.
-
My logic was, when loading this scene, I’d ask the server for a number of all the collections stored with the “ghost data” label in it, randomize values within this number, and get 3 collections from those, and run them in the scene, so that the client can “compete” against this ghosts.
But is it possible to do such a thing? Get a number of collections in the stored engine and retrieve them randomly like an array?
For example, let’s say an array of ghost data has 500 entries, I could randomize and retrive positions 56, 110 and 457 from the array, load it and go.
I’m talking about arrays to have as an example of what I meant, but I know the storage is not an array list.
Thank you all beforehand, sorry if I’m not really clear, I’d be happy to explain more details if anyone needs.