Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Username blocks
- tofu10888
- Scratcher
3 posts
Username blocks
So i want to make a save thing for people, if someone plays my game Flyer space edition it will save to everyone, i want it to save for only that one person. can someone please help meh
- deck26
- Scratcher
1000+ posts
Username blocks
If you want to use cloud data you have to store the username along with the data which means encoding the username to a string of digits and managing the data properly. A save code is easier but if you want to use the cloud see the wiki page on Global High Scores.
- TheAnomalousPseudo
- Scratcher
1000+ posts
Username blocks
Unless I am mistaken, you can only have 10 users' games saved at a time.
We ought to be careful with that octopus that takes over the servers. He's well armed.
- tofu10888
- Scratcher
3 posts
Username blocks
well, for this how would i make a save code??? If you want to use cloud data you have to store the username along with the data which means encoding the username to a string of digits and managing the data properly. A save code is easier but if you want to use the cloud see the wiki page on Global High Scores.
- tofu10888
- Scratcher
3 posts
Username blocks
i do not think this is the place for memes, like discord N O M E M E S I N G E N E R A L Unless I am mistaken, you can only have 10 users' games saved at a time.
Last edited by tofu10888 (May 6, 2021 19:42:05)
- TheAnomalousPseudo
- Scratcher
1000+ posts
Username blocks
How is it a meme?i do not think this is the place for memes, like discord N O M E M E S I N G E N E R A L Unless I am mistaken, you can only have 10 users' games saved at a time.
We ought to be careful with that octopus that takes over the servers. He's well armed.
- SpinningCube
- Scratcher
100+ posts
Username blocks
That's their signature, which appears below every post they make, not what they actually said in this topic.i do not think this is the place for memes, like discord N O M E M E S I N G E N E R A L Unless I am mistaken, you can only have 10 users' games saved at a time.
(I'm assuming that's what you're looking at)
A save code is a piece of text that contains the save data of the user. When you want to save, give the user the save code (via a shown list because that's the only place they can interact with it), and it is their responsibility to copy and paste that somewhere for safekeeping, so they can paste it in the project next time they want to play.
Last edited by SpinningCube (May 6, 2021 20:31:27)
- dragoblade2019
- Scratcher
34 posts
Username blocks
We are making a Mario Kart game there is a 3d engine for driving, but we don't know how to make computers (the opponent you race against) in the engine we've tried multiple times but can't figure it out!
If anyone can help us with this that would be AMAZING and i'll credit you in any way i can!
The project is my main page!
If anyone can help us with this that would be AMAZING and i'll credit you in any way i can!
The project is my main page!
Last edited by dragoblade2019 (May 6, 2021 20:39:38)
- han614698
- Scratcher
1000+ posts
Username blocks
Yes, you're right if you're using cloud vars, but you Unless I am mistaken, you can only have 10 users' games saved at a time.can and should have a list containing the values; for the list, you'll have to have the code
as if you add it to the list manually on the stage, (by clicking ‘+’), it won't update itself.
<Scratch Wikian | Forum Helper | 6000+ Posts>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- TheAnomalousPseudo
- Scratcher
1000+ posts
Username blocks
But you can't access those values form the list over the cloud.Yes, you're right if you're using cloud vars, but you Unless I am mistaken, you can only have 10 users' games saved at a time.can and should have a list containing the values; for the list, you'll have to have the code
as if you add it to the list manually on the stage, (by clicking ‘+’), it won't update itself.
We ought to be careful with that octopus that takes over the servers. He's well armed.
- TheAnomalousPseudo
- Scratcher
1000+ posts
Username blocks
Please don't hijack others' topics. Also don't advertise. We are making a Mario Kart game there is a 3d engine for driving, but we don't know how to make computers (the opponent you race against) in the engine we've tried multiple times but can't figure it out!
If anyone can help us with this that would be AMAZING and i'll credit you in any way i can!
The project is my main page!
We ought to be careful with that octopus that takes over the servers. He's well armed.
- Yusei-Fudo
- Scratcher
1000+ posts
Username blocks
Yes, you're right if you're using cloud vars, but you Unless I am mistaken, you can only have 10 users' games saved at a time.can and should have a list containing the values; for the list, you'll have to have the code
as if you add it to the list manually on the stage, (by clicking ‘+’), it won't update itself.
2 Setbacks:
1. This data will be completely be erased
2. Others can't access that list.
Please don't hijack others' topics. Also don't advertise. We are making a Mario Kart game there is a 3d engine for driving, but we don't know how to make computers (the opponent you race against) in the engine we've tried multiple times but can't figure it out!
If anyone can help us with this that would be AMAZING and i'll credit you in any way i can!
The project is my main page!
Very much agreed.
I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)
Need a project where you can check to see if you can use someone's camera or not? Here's one:
Need a project to detect when someone has clicked the stop sign? Take a look at this:
Need a project that can point at specific clones, etc? Why not use this:
Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:
For more of my projects, just click on this picture:
- -Qlec-
- Scratcher
100+ posts
Username blocks
something I made a while ago that might help:
https://llk.github.io/scratch-gui/master/#526820415
I'm not sure if everything works, tell me if it doesn't
https://llk.github.io/scratch-gui/master/#526820415
I'm not sure if everything works, tell me if it doesn't
Last edited by -Qlec- (May 6, 2021 23:40:39)
scratch fact of the day whenever i feel like changing it: Oddly enough, the (item ( ) of list) and (item # of ( ) in list) blocks can be placed where boolean blocks are supposed to go. This calls on the Boolean() function in JavaScript (the language Scratch is coded in), or whatever other boolean coercion method exists. Numbers and booleans behave as expected, with 0 (but, incorrectly, not -0), “” (empty string), and “false” (the string) converting to false. Everything else converts to true, so stuff like NaN seem to be interpreted as strings.
set [foo v] to [something]Select this, then press Shift + Down
forever {
set [foo v] to (join (foo)(foo))
} :: control
// just your typical code
green is {
an ({apple :: hat #8fd97e}@addInput::ring #55993a) :: #7bc24f cap
}some text<>{
if not (☁ score :: pen) {
{rainbow [#de0909][#ffaa0d][#ffe70a][#7ccf00][#00cf79][#0072cf][#8d00cf] :: #7bc24f reporter}@addInput :: hat pen
}:: #6a8c32
} block [with v] ([text] :: #a8cc5a) ? :: #6a8c32
- deck26
- Scratcher
1000+ posts
Username blocks
All you need for a save code is to make sure you include all the data you need in an unambiguous way so it can be decoded. So your starting point for a save code or a cloud system is to work out what information you need to save.well, for this how would i make a save code??? If you want to use cloud data you have to store the username along with the data which means encoding the username to a string of digits and managing the data properly. A save code is easier but if you want to use the cloud see the wiki page on Global High Scores.
Last edited by deck26 (May 7, 2021 07:44:57)
- Discussion Forums
- » Help with Scripts
- » Username blocks