C
comatsu
Guest
I've recently found out about GM Flox on the marketplace, and it seems like a perfect extension to implement cloud saving, leaderboards and other stuff to my game.
However I am having some trouble understanding how to use it - perhaps someone here has some experience with it and can help?
Currently I am just trying to use the system to save the player's level. On game start I use flox init, and once the player starts the game, a new entity 'Save' is created. In this the player saves a property named 'level' with their level number.
Now when the player closes the game and starts again, I want the next time he sets the 'level' property to update the previous property he had created. Instead when I use
this creates a new property with the new level number.
I understand that I am supposed to load the previously existing entity created by the player, but how do i go about it? It seems that to load an entity I need the entity ID, but I do now know how to request this...
However I am having some trouble understanding how to use it - perhaps someone here has some experience with it and can help?
Currently I am just trying to use the system to save the player's level. On game start I use flox init, and once the player starts the game, a new entity 'Save' is created. In this the player saves a property named 'level' with their level number.
Now when the player closes the game and starts again, I want the next time he sets the 'level' property to update the previous property he had created. Instead when I use
Code:
flox_entity_set("Save","level",2)
I understand that I am supposed to load the previously existing entity created by the player, but how do i go about it? It seems that to load an entity I need the entity ID, but I do now know how to request this...