Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » What’s the best way to go about making a point system in scratch?
- -ParrotXCoder-
- Scratcher
3 posts
What’s the best way to go about making a point system in scratch?
Hi im trying to make a point system in scratch I can’t find an easy way or a good auto save template that works anyone got one? Or any way i can go about it because i want to make it so they can transfer points aswell
- bombardingppl
- Scratcher
100+ posts
What’s the best way to go about making a point system in scratch?
do you mean you want a point system which keeps your same score when you leave and come back?
I like scratching. I like math, I like coding, yknow.
You'll find me on the forum, as well as creating projects actively.
try some of my projects, they include simulations, games, math/geometry, all the gud stuff.
- MineTurte
- Scratcher
500+ posts
What’s the best way to go about making a point system in scratch?
Well if I understand what you are saying you could use the system from BlockBit. It's a bit more advanced for just this but I believe it Hi im trying to make a point system in scratch I can’t find an easy way or a good auto save template that works anyone got one? Or any way i can go about it because i want to make it so they can transfer points aswellshould work. Other than that though I'm not sure what you are asking; same with @bombardingppl.
(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!
If you found this secret, say uwu
Signature gradients here
- -ParrotXCoder-
- Scratcher
3 posts
What’s the best way to go about making a point system in scratch?
Yes do you mean you want a point system which keeps your same score when you leave and come back?
- Norse7
- Scratcher
67 posts
What’s the best way to go about making a point system in scratch?
you could do this:
when green flag clicked
ask [Is this your first time playing or would you like to reset your score?] and wait
if <(answer) = [yes]> then
set [score v] to [0]
end
...
if <the player scores something> then
change [score v] by (1)
end
Last edited by Norse7 (March 31, 2024 19:53:16)
“It’s not a bug; it’s an undocumented feature.” ― Anonymous
when green flag clicked
forever
change [ awesomeness] by (1)
end
- bombardingppl
- Scratcher
100+ posts
What’s the best way to go about making a point system in scratch?
That is quite difficult actually, so first, you have to make sure the player has played the game before.
You can do this with an encode system which adds an encoded code onto a cloud variable and when the player joins, you can encode their username and if the encoded name is not part of the total encoded cloud variable, it adds the encoded name onto the cloud variable (with the join block)
Then, you can make another cloud variable holding all the data you want to be saved, and you can take the data from the corresponding index of the encoded username.
^this is the automated way to do this, which is quite difficult, but if you have a hard time understanding or programming this, you can try the save and load method which is quite simpler.
the user can click a save button which gives them a list with all the data values (separated with a certain character), because lists are the only things you can copy and paste from in the project screen. Then, when they click the load values, they can paste their save code from before, which is going to take all of the data values and convert them back into real data. This video and many other videos can show you how to do this.
You can do this with an encode system which adds an encoded code onto a cloud variable and when the player joins, you can encode their username and if the encoded name is not part of the total encoded cloud variable, it adds the encoded name onto the cloud variable (with the join block)
Then, you can make another cloud variable holding all the data you want to be saved, and you can take the data from the corresponding index of the encoded username.
^this is the automated way to do this, which is quite difficult, but if you have a hard time understanding or programming this, you can try the save and load method which is quite simpler.
the user can click a save button which gives them a list with all the data values (separated with a certain character), because lists are the only things you can copy and paste from in the project screen. Then, when they click the load values, they can paste their save code from before, which is going to take all of the data values and convert them back into real data. This video and many other videos can show you how to do this.
I like scratching. I like math, I like coding, yknow.
You'll find me on the forum, as well as creating projects actively.
try some of my projects, they include simulations, games, math/geometry, all the gud stuff.
- Discussion Forums
- » Help with Scripts
- » What’s the best way to go about making a point system in scratch?