Discuss Scratch

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.
Oumuamua
Scratcher
1000+ posts

Username blocks

N

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
Not really, it depends of the amount of data per user to save. You can have only ten cloud variables in a project.


tofu10888
Scratcher
3 posts

Username blocks

deck26 wrote:

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.
well, for this how would i make a save code???
tofu10888
Scratcher
3 posts

Username blocks

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
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

Last edited by tofu10888 (May 6, 2021 19:42:05)

TheAnomalousPseudo
Scratcher
1000+ posts

Username blocks

tofu10888 wrote:

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
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
How is it a meme?


We ought to be careful with that octopus that takes over the servers. He's well armed.
SpinningCube
Scratcher
100+ posts

Username blocks

tofu10888 wrote:

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
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
That's their signature, which appears below every post they make, not what they actually said in this topic.

(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!

Last edited by dragoblade2019 (May 6, 2021 20:39:38)

han614698
Scratcher
1000+ posts

Username blocks

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
Yes, you're right if you're using cloud vars, but you 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

han614698 wrote:

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
Yes, you're right if you're using cloud vars, but you 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.
But you can't access those values form the list over the cloud.


We ought to be careful with that octopus that takes over the servers. He's well armed.
TheAnomalousPseudo
Scratcher
1000+ posts

Username blocks

dragoblade2019 wrote:

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!
Please don't hijack others' topics. Also don't advertise.


We ought to be careful with that octopus that takes over the servers. He's well armed.
Yusei-Fudo
Scratcher
1000+ posts

Username blocks

han614698 wrote:

TheAnomalousPseudo wrote:

Unless I am mistaken, you can only have 10 users' games saved at a time.
Yes, you're right if you're using cloud vars, but you 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.

TheAnomalousPseudo wrote:

dragoblade2019 wrote:

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!
Please don't hijack others' topics. Also don't advertise.

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

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]
forever {
set [foo v] to (join (foo)(foo))
} :: control
Select this, then press Shift + Down











// 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

tofu10888 wrote:

deck26 wrote:

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.
well, for this how would i make a save code???
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.

Last edited by deck26 (May 7, 2021 07:44:57)

Powered by DjangoBB