Discuss Scratch

Greg8128
Scratcher
500+ posts

Cloud storage engine: store more than 10 cloud variables, and even cloud strings!

CLOUD STORAGE ENGINE (click image below to view the project)


What does it do?
Normally, cloud variables only let you store 10 numbers. This engine allows you to store more than 10 variables, and even strings! For example, you can store over 50 usernames, all in the cloud. It does not depend on a ‘host’ computer to send and receive messages.

How can I try it?
The demo lets you put your username into any of 63 variables. When you refresh the page, your username will still be where you left it!

How does it work?
It uses the 10 cloud variables to store up to 2560 digits. These digits are split up into groups that can be used to store strings and numbers.

How can I use it?
Click on the “CSE” sprite. It has a list called ‘CSE configuration’. There, you can set up the variables however you like.
Say that you want to store a username (a 20 character string), a 10 digit positive number and a 5 digit positive number. You would write:
username string 20
number1 unsigned 10
number2 unsigned 5
inside the ‘CSE configuration’ list, then run the ‘configure’ block. Then, you can use those cloud variables in your project.

Last edited by Greg8128 (Feb. 9, 2021 22:40:51)


My best projects:

Powered by DjangoBB