Discuss Scratch

TNTPUPPY
Scratcher
4 posts

Saving!

How do i make it so that you can save your game on my game? Thanks a lot!
SFollis
Scratcher
500+ posts

Saving!

TNTPUPPY wrote:

How do i make it so that you can save your game on my game? Thanks a lot!
you can't — well, depending on what you want. Saving you file while your programming, you can't. Saving for everybody that views, you can, but WAY easier with cloud lists.
TNTPUPPY
Scratcher
4 posts

Saving!

How though?????????????????
SFollis
Scratcher
500+ posts

Saving!

TNTPUPPY wrote:

How though?????????????????
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





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
Scratcher
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.
TNTPUPPY
Scratcher
4 posts

Saving!

How do you get it?[b[i
SFollis
Scratcher
500+ posts

Saving!

TNTPUPPY wrote:

How do you get it?[b[i
you can't… yet
TNTPUPPY
Scratcher
4 posts

Saving!

Oh
Lone-Wolf
Scratcher
87 posts

Saving!

SFollis wrote:

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
Scratcher
500+ posts

Saving!

Lone-Wolf wrote:

SFollis wrote:

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… ^^^
that just makes it add if the player hasn't played before
Cottagefun
Scratcher
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
Lone-Wolf
Scratcher
87 posts

Saving!

SFollis wrote:

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
Scratcher
87 posts

Saving!

SFollis wrote:

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… So, how do I find/use them? I'm sort of confused…

Last edited by Lone-Wolf (May 26, 2013 03:57:36)

chocolatepenguin
Scratcher
1000+ posts

Saving!

Lone-Wolf wrote:

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…
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!
Lone-Wolf
Scratcher
87 posts

Saving!

chocolatepenguin wrote:

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! And now I understand that list block. Thanks!
Lone-Wolf
Scratcher
87 posts

Saving!

chocolatepenguin wrote:

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 ) question. What do you put in the empty slot to the left of the equals sign?
SFollis
Scratcher
500+ posts

Saving!

Lone-Wolf wrote:

chocolatepenguin wrote:

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 ) question. What do you put in the empty slot to the left of the equals sign?
nothing, just nothing

Powered by DjangoBB