Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Multiplayer with the help of cloud variables - HELP _By Me
- TPAL125
-
75 posts
Multiplayer with the help of cloud variables - HELP _By Me
Help with scripts? I don't think it should be in that section. Well, they're not MY scripts. *Yet*
Hello there Scratch world. I'm a twelve year old who happens to program on scratch. I don't have advanced knowledge of scratch but I know a bit.
Just knowledgeable enough to be able to make a platformer out of complete maths. No sensing sprite blocks needed. Link
(come on, the scripts are GIGANTIC. There has got to be a glitch there for you to find.)
Also I'm pretty good at spamming in random places without control…
Anyway, I've seen that there are cloud variables out now. And this guy called Griffpatch made a multiplayer tank game out of it.
That multiplayer game also happens to be the only multiplayer project I know about so I'm expecting it's something hard enough to be quite rare.
Luckily he made it though, so I don't have to do that much work. I can just ‘copy’ his scripts. By that I mean trying to understand the scripts and using it as my own.
…
Clicked ‘see inside’, and realized studying those scripts was more of a bad idea…
No really, I swear that is extraterrestrial programming.
This somehow reminds me of the Matrix actually…
Okay, this may not be easy for you to answer but all you have to do is tell me what the tank arena project would need in its cloud variable. The programming part is not that much of a problem, I just need a guide(hopefully I can be right in what I just said).
I've split things up to two groups.
What I've got that I could do (50 or more percent chance of me doing it alone):
- Using the cloud variable to place, set the colour and shoot the bullets.
- Giving it a list of where each tank will move (so they all move at the same time).
- Setting the numbers for each player (say there are four players, they get listed 1, 2, 3, 4, and player 2 leaves. number 3 and 4 will get set to the correct number.{3 will be 2, 4 will be 3}).
What I got absolutely no chance of doing without help from at least somewhere (negative 2 percent chance):
- Resetting the variable when someone leaves and someone else enters.
- Sending a message to another player that needs a reply. (if the player is there, he sends a message back. If he is not, what's the script that needs the least time to know he's not there?)
Please reply everyone.
Oh, and if you're here reading this griffpatch, you made the project. I need your help most. Don't leave me stranded.
End.
________________________________________________________________________________________

________________________________________________________________________________________
Last edited by TPAL125 (Sept. 22, 2013 12:08:02)
- FinTrakerGamer
-
100+ posts
Multiplayer with the help of cloud variables - HELP _By Me
Just put sprites in your backpack and give credit, Done!
- Discussion Forums
- » Questions about Scratch
-
» Multiplayer with the help of cloud variables - HELP _By Me