Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Cloud Data (See other people playing game)
- PoofToof
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
I know it's possible to make Cloud Data games, but I don't know the scrips. I get confused and sometimes my head starts to hurt. I am trying to do it, but there's lots of problems and stuff. Please help!
- 110Percent
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
So, are you looking for a program that shows the people who are online, or a program that, for example, shows where others are in a platformer?
- deck26
-
Scratcher
1000+ posts
Cloud Data (See other people playing game)
As @110Percent suggests you need to give more info on what you're trying to store in the cloud. Anything other than numbers requires encoding and decoding but if you're just saving something like a single high score it is simple enough.
- PoofToof
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
That shows other people moving a character around, like Club Penguin. 

- lbruns
-
Scratcher
500+ posts
Cloud Data (See other people playing game)
That shows other people moving a character around, like Club Penguin.
In order to do that, you must use cloud variables to keep track of X and Y positions of each player. Also you will probably want a online feature to sho ho is online or not.
- deck26
-
Scratcher
1000+ posts
Cloud Data (See other people playing game)
You might be better starting with something simpler! Other people are doing this sort of thing and you can look at their projects but it's not easy and there are issues like identifying when people have stopped playing (without signing off in any way) and avoiding two players writing data to the same variable at the same time. You'd be best having a separate cloud variable for each player so only that player writes to that variable but others can read it but you still have to have some way of allocating a free slot to a new player.
I'd start by trying to get the latter working but am reluctant to advise further when others who've gone down this road already might be better placed to advise.
I'd start by trying to get the latter working but am reluctant to advise further when others who've gone down this road already might be better placed to advise.
- 110Percent
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
That shows other people moving a character around, like Club Penguin.
…oh thank god. The other one is so hard to do.
There are two methods to this. One is easier, but has limited accessibility.
Make player Slots. Have a cloud list (see @Lirex's workaround) with a certain amount of slots that store the X and Y positions. If the server (list) is full of players, than you can't join.
The other method is much more difficult, but gives an unlimited amount of slots.
You need to have everyone's game keep refreshing to see if the people are online, by having a tick timer that changes every half-second. If the timer doesn't refresh, than that person's client hasn't been online to refresh the timer, making it inactive/offline.
- PoofToof
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
I try X and Y but there is so many bugs and stuff. 

- ijohn007
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
That shows other people moving a character around, like Club Penguin.
…oh thank god. The other one is so hard to do.
There are two methods to this. One is easier, but has limited accessibility.
Make player Slots. Have a cloud list (see @Lirex's workaround) with a certain amount of slots that store the X and Y positions. If the server (list) is full of players, than you can't join.
The other method is much more difficult, but gives an unlimited amount of slots.
You need to have everyone's game keep refreshing to see if the people are online, by having a tick timer that changes every half-second. If the timer doesn't refresh, than that person's client hasn't been online to refresh the timer, making it inactive/offline.
Could do with some examples
- PhysicsWhizz
-
Scratcher
100+ posts
Cloud Data (See other people playing game)
-snip-
Please don't do this!
- LCPS_LIB-001
-
Scratcher
19 posts
Cloud Data (See other people playing game)
i made one…… with the help of Laddie12 http://scratch.mit.edu/projects/48907506/
- Minigame_Mindbender
-
Scratcher
6 posts
Cloud Data (See other people playing game)
I wish I could help but I am STILL a New Scratcher. Seriously though, look at my account and tell me what I haven't done. I want to start making multiplayer games and to understand them better so that I can help others. I been waiting for at least a month and a half now. I'm starting to get angry.
- Discussion Forums
- » Help with Scripts
-
» Cloud Data (See other people playing game)



