Note that this can easily be hacked.
You can use the store key block to store data. The first input is the key, or the "name." That's what will be used to locate and manipulate the data. Make sure you make your key names distinct and remember what they are.
The second input is the value. This can be changed at any time by overwriting the key name in the block. The value parameter is where you'll actually store the savecodes.
(You still need to make the savecode creating and loading system yourself.)
Stored data in browser block: Just a block to report a dictionary of all the stored data. A dictionary is a list of lists, in which each item is the same size (2 items) and they all follow the key-value formula we talked about earlier.
Get value from key takes a key name and reports the matching value from the storage. If you had a key stored named 'savecode', and it had a value of 3, you could enter 'savecode' in that block and it would report 3. The block also reports false if the key is not found, so you can use it with "is _ a _" to see if a key exists.
The rest are self-explanatory.
(Also @programmer_user you could store it in a single key and separate the values by space, then split it by space and load each variable accordingly)
What is worng?
Just compare the two pictures...
I am confused.
I don't see a difference except for my blocks in the middle.
Ohhhh wow I am stupid
You should remove the clear data block. It has no practical use and can erase data from other games too. Replace it with two remove key blocks instead for
Hi, do you have a project where you use it so i can figure how it work ?
i like it but can you tell me how to setup my repl.it account for a game.
example, i want to share my position (x,y) and my direction to another app
Oh: i'm beginner...
For WebSocket meshing:
I don't know what to do with this... i need explanations...
what is the purpose of websocket ?
It is just to send and receive messages in the cloud
you have to get these blocks to make it work:
these to send a message:
these to close the system:
and these to get ready to receive a message.
Can i share this websocket between 2 differents apps ?