ScratchData LogoScratchData
Back to Psiborg's profile

Encoding Text in Cloud Variables

PSPsiborg•Created June 9, 2023
Encoding Text in Cloud Variables
14
13
148 views
View on Scratch

Instructions

@amirsadrajamali requested a project on how to encode a username in cloud variables This project should list the last 5 Scratchers to have run it (I will see if it works when someone else tries it!). Due to complexities in how Scratch handles string comparisons, this method will convert everything to lower case. The encoding is done by mapping all the symbols in the "characters" variable to their position in that string. So a=1, b=2, c=3 etc and then adding 10 to it to make sure that everything is encoded as a 2 digit number to make it easier to decode. Space is encoded as 00. Please see inside for further comments!

Description

Code taken from my Antfestation project: https://scratch.mit.edu/projects/215189208/

Project Details

Project ID863387845
CreatedJune 9, 2023
Last ModifiedNovember 18, 2024
SharedJune 9, 2023
Visibilityvisible
CommentsAllowed