Discuss Scratch

The_Awsome_Sonic
Scratcher
62 posts

How do I make an online multiplayer game?

Ask griffpatch.
MLPFAN8
Scratcher
100+ posts

How do I make an online multiplayer game?

I'm posting so this shows under my posts so I can view it later
kiloe2
Scratcher
96 posts

How do I make an online multiplayer game?

when green flag clicked
if <[1] = [0 ]> then
set [ 1] to [ 1]

end
if <[2] = [0 ]> then
set [ 2] to [ 1]

end
that is the multiplayer script. You really cant do anything, it just connects to the server.

Last edited by kiloe2 (May 20, 2015 23:18:52)

squidoodly64
Scratcher
48 posts

How do I make an online multiplayer game?

sorry but how do you make discussions?
SonicandtheBlack
Scratcher
8 posts

How do I make an online multiplayer game?

i know how, go to data, and create a varable, like hp. where it says this sprite or all sprites, under that it will say cloud data
MinecraftFR
Scratcher
3 posts

How do I make an online multiplayer game?

masterneil
Scratcher
31 posts

How do I make an online multiplayer game?

Thank you everyone who taught how to code multiplayer, I really appreciate it!
Any ideas how I could test my multiplayer chatting project.
HardClaw57
Scratcher
500+ posts

How do I make an online multiplayer game?

(deleted)

Last edited by HardClaw57 (June 25, 2015 08:49:24)

Potato_Master_21
Scratcher
13 posts

How do I make an online multiplayer game?

set [what im doing] to [POTATO]
[/scratcheblocks]
Santasimpson
Scratcher
8 posts

How do I make an online multiplayer game?

I wanted to make a multipalyer game for my RPG, although, to me its almost impossible!

when green flag clicked
think [how do i do this, it looks tough!] for (2) secs
set [Santasimpson] to [a pro coder ]
go to x: (the store) y: (the stars!)
adazem009
Scratcher
100+ posts

How do I make an online multiplayer game?

7272hawk wrote:

How do i make an online multiplayer game?
How to make a multiplayer game like (hungry balls)…
1.Log in
2.Click here or here!
3.Remix, add your own ideas to multiplayer game!
Or ask griffpatch!

Last edited by adazem009 (July 1, 2015 09:35:02)

lovepan
Scratcher
13 posts

How do I make an online multiplayer game?

how can i make it
[/quote]

when green flag clicked
say [[scratchblocks]
][/scratchblocks]
say []it is sooooo hard[scratchblocks]

stop [ v]
[/scratchblocks]
kittygurl5098
Scratcher
14 posts

How do I make an online multiplayer game?

play sound [ umm ]
this is hard
lovepan
Scratcher
13 posts

How do I make an online multiplayer game?

when green flag clicked
think [tihs iis soooooooooooo hard] for (2) secs
say [ok multiplayer games]
pgpg
Scratcher
52 posts

How do I make an online multiplayer game?

look at my sentence!!!!!!
kittygurl5098
Scratcher
14 posts

How do I make an online multiplayer game?

when green flag clicked
i want to learn how to make a multiplayer game too
kittygurl5098
Scratcher
14 posts

How do I make an online multiplayer game?

wait it is possibe if you make a varible and do cloud data but you ned logic and a smart brain lucky i think i know how to make an online rpg you know like minecraft

Last edited by kittygurl5098 (July 1, 2015 18:21:56)

kittygurl5098
Scratcher
14 posts

How do I make an online multiplayer game?

lovepan wrote:

when green flag clicked
think [tihs iis soooooooooooo hard] for (2) secs
say [ok multiplayer games]

you need a cloud block also go to https://scratch.mit.edu/help/faq/#clouddata if you want help
kittygurl5098
Scratcher
14 posts

How do I make an online multiplayer game?

lovepan wrote:

when green flag clicked
think [tihs iis soooooooooooo hard] for (2) secs
say [ok multiplayer games]

you need a cloud block also go to https://scratch.mit.edu/help/faq/#clouddata if you want help
StampysHelper
Scratcher
8 posts

How do I make an online multiplayer game?

AonymousGuy wrote:

7272hawk wrote:

How do I add a encoder and decoder?
Well there are a lot out there. I normally start from scratch when I am (trying to) build a multiplayer game.

I usually use lists which store all the data, although there are other ways.
Here is the normal way:
define init encoder //Maybe not all of them have this, but I like to so that it's fool-proof.
delete (all v) of [Letters v]
set [string v] to [abcdefghijklmnopqrstuvwxyz1234567890 `~!@#$%^&*()-=_+[\{}|;':",./?]
set [i v] to [1] //Also, make sure the string variable includes a space and all characters, I had to skip a few because scratchblocks was misbehaving
repeat until <(i) > (length of (string))> //you can also repeat until i = length of string, I think, but I am not sure
add (letter (i) of (string)) to [Letters v]
change [i v] by (1)
end

define encode (estring)
set [return v] to []//Second input is completely blank
set [i v] to [1] //Or you can use separate variables for encoding and decoding
repeat until <(i) > (length of (estring))>
set [ii v] to [1]
repeat until <(item (ii) of [Letters v]) = (letter (i) of (estring))>
change [ii v] by (1)
end
if <(length of (ii)) < [2]>
set [return v] to (join (return) (join (9) (ii))) //Normally the 9 is a zero but making it a 9 prevents Scratch from getting rid of the 0 if it is the first letter
else
set [return v] to (join (return) (ii))
end
change [i v] by (1)

define decode (number)
set [return v] to [] //Second input is completely blank
set [i v] to [1]
repeat until <(i) > (length of (number))>
set [return v] to (join (return) (item (join (letter (i) of (number)) (letter ((i) + (1)) of (number))) of [Letters v])
change [i v] by (2) //make sure this is a 2
end
My script might not be perfect because I normally do encoders a different way, but I think this should work.

EDIT: Gah! The comments were cut off again! If you need to, push “quote” to see the comments, but you don't need to submit the message.
This looks complicated. Scratch should make it easier by making an
(Online)
block. Right?

Powered by DjangoBB