Help with Things

2021-02-26 (1)
2021-02-26 (2)
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)

This right?

No.

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 :rofl:

Is this right and do I need to do anything for deleting data or saving and loading?

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 money and money_per_click
image

I did.

Hi, do you have a project where you use it so i can figure how it work ?

For polling: https://snap.berkeley.edu/project?user=programmer_user&project=snap%20chat

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:
https://snap.berkeley.edu/project?user=18001767679&project=ws

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:ws script pic
these to send a message:ws script pic (1)
these to close the system:ws script pic (2)
and these to get ready to receive a message.

Thank's

Can i share this websocket between 2 differents apps ?

Yess.