Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » World Record with their username for Clicker Game
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
Hello
I am now planning to add a update to my clicker game to update my world record variable to a custom number counter with the world record holders username. I don't know how to do this. So please let me know.
Link to project:
https://scratch.mit.edu/projects/865730814/
===================================
~Myth
I am now planning to add a update to my clicker game to update my world record variable to a custom number counter with the world record holders username. I don't know how to do this. So please let me know.
Link to project:
https://scratch.mit.edu/projects/865730814/
===================================
~Myth
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
Also another question, how can I round my numbers in my clicker game?
- Janhoygato
-
Scratcher
100+ posts
World Record with their username for Clicker Game
This is how it works
Make a variable as the following
set [Encode v] to [1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-_]then, use a list and map the variable to the list
set [i v] to [0]Then with encoding to the cloud, and then decoding into a variable, you've got a working username cloud thing.
repeat (length of [(Encode)])
add (letter (i) of [(Encode)]) to [list v]
change [i v] by (1)
end
Also another question, how can I round my numbers in my clicker game?This can be done by creating a new variable, called Display.
Then, set display to be the round of the score variable.
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
This is how it works
Make a variable as the followingset [Encode v] to [1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-_]then, use a list and map the variable to the listset [i v] to [0]Then with encoding to the cloud, and then decoding into a variable, you've got a working username cloud thing.
repeat (length of [(Encode)])
add (letter (i) of [(Encode)]) to [list v]
change [i v] by (1)
endAlso another question, how can I round my numbers in my clicker game?This can be done by creating a new variable, called Display.
Then, set display to be the round of the score variable.
Thanks!
- BATTLEBOTS-BOI
-
Scratcher
15 posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Username Saving Script
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
- Janhoygato
-
Scratcher
100+ posts
World Record with their username for Clicker Game
That something that cannot be done with normal scratch unfortunately, due to how encoding works. ( Both “A” and “a” map to the same thing )I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
- BATTLEBOTS-BOI
-
Scratcher
15 posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
Unfortunately, Scratch takes characters such as b and B as the same character, so it will only encode to the first character in the list it finds to match.
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
Unfortunately, Scratch takes characters such as b and B as the same character, so it will only encode to the first character in the list it finds to match.
Oh, Ok. May I ask if I have done this correct on my project? Cuz I think theres a problem
https://scratch.mit.edu/projects/865730814/
- Janhoygato
-
Scratcher
100+ posts
World Record with their username for Clicker Game
It’s working perfectly fineI just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
Unfortunately, Scratch takes characters such as b and B as the same character, so it will only encode to the first character in the list it finds to match.
Oh, Ok. May I ask if I have done this correct on my project? Cuz I think theres a problem
https://scratch.mit.edu/projects/865730814/
- mycatcode
-
Scratcher
6 posts
World Record with their username for Clicker Game
Hi I am happy to lend some of my custom code to you
The Decoder/Encoder
I am made a project which decodes number to letter, numbers and symbols etc (THIS IS CASE SENSETIVE TOO)
just backpack the sprite with the word DECODER and export the lists from that project
message me back if you need help
AND MAKE SURE TO CREDIT ME (in project description)
Good luck
{U MUST USED THE DECODER SPRITE AS IT HAS COSTUMES TO DETECT THE CASE}
-MYCATCODE
The Decoder/Encoder
I am made a project which decodes number to letter, numbers and symbols etc (THIS IS CASE SENSETIVE TOO)
just backpack the sprite with the word DECODER and export the lists from that project
message me back if you need help
AND MAKE SURE TO CREDIT ME (in project description)
Good luck
{U MUST USED THE DECODER SPRITE AS IT HAS COSTUMES TO DETECT THE CASE}-MYCATCODE
- BATTLEBOTS-BOI
-
Scratcher
15 posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
Unfortunately, Scratch takes characters such as b and B as the same character, so it will only encode to the first character in the list it finds to match.
Oh, Ok. May I ask if I have done this correct on my project? Cuz I think theres a problem
https://scratch.mit.edu/projects/865730814/
First, the characters that can be used in usernames are:
abcdefghijklmnopqrstuvwxyz1234567890_-
However, I am unable to find any mistakes in your encoding or decoding code. I give you permission to use my code as long as you cite that you got it from me.
- -MythGaming-
-
Scratcher
100+ posts
World Record with their username for Clicker Game
I just made a project to demonstrate this. Your welcome!
Username Saving Script
Thanks, I already had gotten it! How can you make it so the capitalisation of the username is correct?
Unfortunately, Scratch takes characters such as b and B as the same character, so it will only encode to the first character in the list it finds to match.
Oh, Ok. May I ask if I have done this correct on my project? Cuz I think theres a problem
https://scratch.mit.edu/projects/865730814/
First, the characters that can be used in usernames are:
abcdefghijklmnopqrstuvwxyz1234567890_-
However, I am unable to find any mistakes in your encoding or decoding code. I give you permission to use my code as long as you cite that you got it from me.
Alr, I'll use yours and give credit!
- Discussion Forums
- » Help with Scripts
-
» World Record with their username for Clicker Game