[CLOSED] Is it possible to further optimise my loading system events?

@v9um It’s ok if you don’t get something right away… it’s called learning :stuck_out_tongue:

The thing is, you are already working with an array. You are properly testing values (such as condition SaveLoadArrayPos[0] = “ColorBlock”) as well as transferring them to an object (set Laps of Blocks = SaveLoadArrayPos[2]).

So, to save your data, you can just do the opposite - write the values into the array. It will be a two-dimensional array, so for example the first property of the first block will be at Array[0][0]. The second property will be Array[0][1]. The second block will be Array[1][0], Array[1][1], and so on.

You don’t need to convert any of this to a string until player hits the share button. When they do, you can either use your method to encode it, or just use the expression ToJSON(Array) which returns a JSON string containing the array data.

1 Like