Discuss Scratch

noahnut
Scratcher
7 posts

Cloud data

How do i make cloud multiplayer a feature in my games? My browser / operating system: Windows NT 10.0, Chrome 52.0.2743.116, Flash 22.0 (release 0)
Jonathan50
Scratcher
1000+ posts

Cloud data

You'll need to use cloud variables to store data (like the positions of players) encoded as numbers.
Your browser and operating system won't make a difference (unless you want to use a backend written in a language other than Scratch).
noahnut
Scratcher
7 posts

Cloud data

confused
Jonathan50
Scratcher
1000+ posts

Cloud data

noahnut wrote:

confused
Do you understand normal variables in Scratch? Cloud variables are a special kind of variables that the Scratch website saves whenever they are changed. You make them by checking this box in the “New Variable” dialog that appears when you click “Make a Variable”:

They can currently only contain numbers though, so you can put text strings like “hello” in them. To store data other than numbers, you'll need to encode it, save it in the cloud variable, and then decode it when you want to access it.
noahnut
Scratcher
7 posts

Cloud data

HOW?
jokebookservice1
Scratcher
1000+ posts

Cloud data

noahnut wrote:

HOW?
If you are asking about the encoding, first have a think about it yourself.

I'll make the problem simpler for you, you only have nine letters for you to use:

a, b, c, d, e, f, g, h, i

And you need to encode any word using those letters into numbers, and be able to decode it as well. Once you solve this, simplified, problem, we'll move on and try to make it work for more letters
MegaApuTurkUltra
Scratcher
1000+ posts

Cloud data

There are some cloud multiplayer engines that might be able to help you
lbony014789
Scratcher
3 posts

Cloud data

I use all my jerney for cloud data saving and engines It is working well but how can you put theme is a cloud variable instead of a list?
noahnut
Scratcher
7 posts

Cloud data

You are asking ME!
jokebookservice1
Scratcher
1000+ posts

Cloud data

noahnut wrote:

You are asking ME!
I think I was. But I'm not sure who you're talking to because you didn't quote anybody. I'd like to teach you programming, and for that I need to teach you to think by yourself. If you have 9 letters, how do you encode a text string out of those letters (have a go, and if you get stuck, feel free to ask)?
noahnut
Scratcher
7 posts

Cloud data

Look, no offense, but SPEAK ENGLISH!
lugga
Scratcher
500+ posts

Cloud data

noahnut wrote:

Look, no offense, but SPEAK ENGLISH!

English (Technical)
I think I was. But I'm not sure who you're talking to because you didn't quote anybody. I'd like to teach you programming, and for that I need to teach you to think by yourself. If you have 9 letters, how do you encode a text string out of those letters (have a go, and if you get stuck, feel free to ask)?

Translation

English (Simplified)
I think I was. But I'm not sure who you're talking to because you didn't quote anybody. I'd like to teach you programming, and for that I need to teach you to think by yourself. If you have the 9 letters “a, b, c, d, e, f, g, h, i”, how do you turn these letters into numbers (Hint: a becomes 1) (have a go, and if you get stuck, feel free to ask)?
jokebookservice1
Scratcher
1000+ posts

Cloud data

lugga wrote:

noahnut wrote:

Look, no offense, but SPEAK ENGLISH!

English (Technical)
I think I was. But I'm not sure who you're talking to because you didn't quote anybody. I'd like to teach you programming, and for that I need to teach you to think by yourself. If you have 9 letters, how do you encode a text string out of those letters (have a go, and if you get stuck, feel free to ask)?

Translation

English (Simplified)
I think I was. But I'm not sure who you're talking to because you didn't quote anybody. I'd like to teach you programming, and for that I need to teach you to think by yourself. If you have the 9 letters “a, b, c, d, e, f, g, h, i”, how do you turn these letters into numbers (Hint: a becomes 1) (have a go, and if you get stuck, feel free to ask)?
Doesn't stop it from being English

Well, after reviewing it, I see the problem with how I phrased it, sorry @noahnut
jokebookservice1
Scratcher
1000+ posts

Cloud data

noahnut wrote:

Look, no offense, but SPEAK ENGLISH!
What language was I speaking?
Jonathan50
Scratcher
1000+ posts

Cloud data

noahnut wrote:

HOW?
Can you please say what it is you don't understand? Normal variables, cloud variables, or encoding?
happyland440
Scratcher
1000+ posts

Cloud data

Cloud data is one of the most advanced parts of Scratch. I have been using Scratch for almost 5 years yet I haven't mastered it.

Basically, you want to make cloud variables to store every single person's X & Y coordinates. That's just a start. If you wanted to make a pvp arena, you'd have to be able to track everyone's lives. That's when you'd have to encode, as you can only have 10 cloud variables per game.

This Wiki article should help you get started. Also, experiment around and see what you can create.
SCAScratch1
Scratcher
14 posts

Cloud data

I use all my jerney for cloud data saving and engines It is working well but how can you put theme is a cloud variable instead of a list?
use the set to block for varibles
noahnut
Scratcher
7 posts

Cloud data

wot i wont 2 do iz put in cloud multiplayer!
Jonathan50
Scratcher
1000+ posts

Cloud data

Jonathan50 wrote:

noahnut wrote:

HOW?
Can you please say what it is you don't understand? Normal variables, cloud variables, or encoding?
noahnut
Scratcher
7 posts

Cloud data

cloud variables and encoding

Powered by DjangoBB