Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Saving!
- TNTPUPPY
-
4 posts
Saving!
How do i make it so that you can save your game on my game? Thanks a lot!
- SFollis
-
500+ posts
Saving!
you can't — well, depending on what you want. Saving you file How do i make it so that you can save your game on my game? Thanks a lot!while your programming, you can't. Saving for everybody that views, you can, but WAY easier with cloud lists.
- SFollis
-
500+ posts
Saving!
for cloud lists, first list is…. How though?????????????????
user id — this contains ALL users, therefore easily giving your user id (because it will find the position of it)
and
level-on — this will say what level your on for what user (with user id)
then it goes to level based on the level-on cloud list.
and some programming for having a place for each user.
e.g.
if <not <user id contains (username)>>
add (username) to user id
and
when gf clicked
wait (0.1) secs
if <[] = item (item of username in user id) of level-on>
add 1 to level-on
then the game, and it keeps updating for each level.
- turkey3
-
1000+ posts
Saving!
You'll have to have cloud lists and have the item numbers all linked to a specific user using the username block.
- Lone-Wolf
-
87 posts
Saving!
when gf clicked
wait (0.1) secs
if <[] = item (item of username in user id) of level-on>
add 1 to level-on
then the game, and it keeps updating for each level.
Thanks, that little tid bit of info with the User ID helped. But I don't get this part… ^^^
- SFollis
-
500+ posts
Saving!
that just makes it add if the player hasn't played beforewhen gf clicked
wait (0.1) secs
if <[] = item (item of username in user id) of level-on>
add 1 to level-on
then the game, and it keeps updating for each level.
Thanks, that little tid bit of info with the User ID helped. But I don't get this part… ^^^
- Cottagefun
-
8 posts
Saving!
You can use a code system instead. Of saving. Like have a variable for the level you're on and what stats or whatever, and type that on the question block.
Level5
Sword: yes
So the code could be 5y
You could have
If letter 1 of (code)=5
If letter 2 of (code)=y
Broadcast sword
Broadcast level5
And you can have scripts like that
For every level and stat
Level5
Sword: yes
So the code could be 5y
You could have
If letter 1 of (code)=5
If letter 2 of (code)=y
Broadcast sword
Broadcast level5
And you can have scripts like that
For every level and stat
- Lone-Wolf
-
87 posts
Saving!
for cloud lists, first list is….
user id — this contains ALL users, therefore easily giving your user id (because it will find the position of it)
and
level-on — this will say what level your on for what user (with user id)
then it goes to level based on the level-on cloud list.
and some programming for having a place for each user.
e.g.
if <not <user id contains (username)>>
add (username) to user id
This was very helpful. (I will say it again) But is it possible to make a script to tell if the user is online or offline? Here, I posted a forum about it:
Online/Offline Help
Last edited by Lone-Wolf (May 26, 2013 03:07:55)
- Lone-Wolf
-
87 posts
Saving!
that just makes it add if the player hasn't played before
Oh, but what does the “gf” and "if <[] = item (item of username in user id) of level-on>" mean? I don't really see blocks for them…

Last edited by Lone-Wolf (May 26, 2013 03:57:36)
- chocolatepenguin
-
1000+ posts
Saving!
It's called Scratchblocks code, and is used with something called the Block Plugin, which is going to be implemented into the 2.0 forums soon. Oh, but what does the “gf” and "if <[] = item (item of username in user id) of level-on>" mean? I don't really see blocks for them…So, how do I find/use them? I'm sort of confused…
Here's what they mean:
gf means “When flag clicked”, and the block can be found under the Events tab.
if <[] = item (item of username in user id) of level-on> means that in an “if” block, in the hexagonal slot, there is an equals block, then in the right slot there is a list block (item [] of level-on) for a list called level-on, and in the bit to put a number is the same block but for the list user id, and put the username block in that block's number slot.
I hope this helps!
- Lone-Wolf
-
87 posts
Saving!
It's called Scratchblocks code, and is used with something called the Block Plugin, which is going to be implemented into the 2.0 forums soon.
Here's what they mean:
gf means “When flag clicked”, and the block can be found under the Events tab.
if <[] = item (item of username in user id) of level-on> means that in an “if” block, in the hexagonal slot, there is an equals block, then in the right slot there is a list block (item [] of level-on) for a list called level-on, and in the bit to put a number is the same block but for the list user id, and put the username block in that block's number slot.
I hope this helps!
Oh! I know about making blocks out of symbols and stuff, but I couldn't figure out the gf part!

- Lone-Wolf
-
87 posts
Saving!
if <[] = item (item of username in user id) of level-on> means that in an “if” block, in the hexagonal slot, there is an equals block, then in the right slot there is a list block (item [] of level-on) for a list called level-on, and in the bit to put a number is the same block but for the list user id, and put the username block in that block's number slot.
Oh, but I have one last(hopefully

- SFollis
-
500+ posts
Saving!
nothing, just nothingif <[] = item (item of username in user id) of level-on> means that in an “if” block, in the hexagonal slot, there is an equals block, then in the right slot there is a list block (item [] of level-on) for a list called level-on, and in the bit to put a number is the same block but for the list user id, and put the username block in that block's number slot.
Oh, but I have one last(hopefully) question. What do you put in the empty slot to the left of the equals sign?
- Discussion Forums
- » Help with Scripts
-
» Saving!