Discuss Scratch

ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

I have tried the scratch wiki method, and a lot of people’s are way too complicated and confusing. I need a multiplayer engine that’s simple (right now I don’t need something complicated) that works. Please help.
-ScratchCatHELLO
hirsh001
Scratcher
100+ posts

Why won’t my multiplayer scripts work?

It depends on what kind of game you are making, and by multiplayer, do you mean across the cloud?
ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

hirsh001 wrote:

It depends on what kind of game you are making, and by multiplayer, do you mean across the cloud?
I am making a multiplayer test, so the character can just move around the screen, and yes, across the cloud
Alberknyis
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

It's probably best to stay away from complicated projects for now. Multiplayer games are difficult to do in Scratch. How far have you gotten in the multiplayer project you're trying to make?
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

im making one but it has limited capacity of people on the project at once.

I had a discussion with someone that was helpful on the https://scratch.mit.edu/discuss/topic/286961/?page=1#post-2935325 the it might be helpful
also look up saving data on scratch wiki then your sorted
ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

Alberknyis wrote:

It's probably best to stay away from complicated projects for now. Multiplayer games are difficult to do in Scratch. How far have you gotten in the multiplayer project you're trying to make?
I have the whole project essentially done, it’s just the cloud bit isn’t working. It just says “new scratcher or not connected”
ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

brtommygun wrote:

im making one but it has limited capacity of people on the project at once.

I had a discussion with someone that was helpful on the https://scratch.mit.edu/discuss/topic/286961/?page=1#post-2935325 the it might be helpful
also look up saving data on scratch wiki then your sorted
I’m using two players a game. Also how would saving data help? I’m just make it so people can join each other, not a full-scale thing
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

oh whats the type of game I am making a multiplayer PRG.

I am up to the part were I separate the users to different sprites but its hard.

addmetosame problem
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

ScratchCatHELLO wrote:

Alberknyis wrote:

It's probably best to stay away from complicated projects for now. Multiplayer games are difficult to do in Scratch. How far have you gotten in the multiplayer project you're trying to make?
I have the whole project essentially done, it’s just the cloud bit isn’t working. It just says “new scratcher or not connected”

I think that you need a script that recognises if someone is not logged in

ifusername= thenstopelsebroadcastyour code here
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

stopthe universeaddscorePPtohow will I do this?

Last edited by brtommygun (Dec. 25, 2017 18:59:09)

brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

iflol>thenwaituntilO+Oelsewaituntil^
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

Ice cream better than nothing and nothing is better than cake
whenclickedifice cream>nothingthenifnothing>cakethensayice cream>cakethereforeicecreamisbetterthancake
hirsh001
Scratcher
100+ posts

Why won’t my multiplayer scripts work?

brtommygun wrote:

ScratchCatHELLO wrote:

Alberknyis wrote:

It's probably best to stay away from complicated projects for now. Multiplayer games are difficult to do in Scratch. How far have you gotten in the multiplayer project you're trying to make?
I have the whole project essentially done, it’s just the cloud bit isn’t working. It just says “new scratcher or not connected”

I think that you need a script that recognises if someone is not logged in

ifusername= thenstopelsebroadcastyour code here
I wish that were completly true, then multiplayer would be a lot siimpler (In my eyes)
brtommygun
Scratcher
20 posts

Why won’t my multiplayer scripts work?

hirsh001 wrote:

brtommygun wrote:

ScratchCatHELLO wrote:

Alberknyis wrote:

It's probably best to stay away from complicated projects for now. Multiplayer games are difficult to do in Scratch. How far have you gotten in the multiplayer project you're trying to make?
I have the whole project essentially done, it’s just the cloud bit isn’t working. It just says “new scratcher or not connected”

I think that you need a script that recognises if someone is not logged in

ifusername= thenstopelsebroadcastyour code here
I wish that were completly true, then multiplayer would be a lot siimpler (In my eyes)

Is it not comleatly true scratch needs a
playerrank*blueforsensingblock*
then we could block out all new scratchers so that they didn't mess up the cloud variables.
EpicMeHaha
Scratcher
2 posts

Why won’t my multiplayer scripts work?

ScratchCatHELLO wrote:

I have the whole project essentially done, it’s just the cloud bit isn’t working. It just says “new scratcher or not connected”

Same with me, i used scratch wiki and basically copied it all and it still doesn't work!

You can always try a fake multiplayer and pretend that other people are online, i've even done a fake leaderboard!
Alberknyis
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

Programming a multiplayer engine is difficult because it requires you to do these three things:

  1. Add a player slot when a player joins
  2. Continuously send information through a cloud variable
  3. Remove a player slot when a player leaves

Step 2 requires you to know how to convert information from a list into a number. Step 3 basically requires you to be able to use the timer block. Step one in my opinion is the hardest (but that might be because I never got past that step) because you need to know how to deal with an allocating collision (when two players try to use the same cloud variable). I'd recommend you add player slots by checking the username of the player, basically brtommygun's solution. The problem is since it checks specific usernames only those people can use the project, but it lets you skip step 1 (since you used the scratch wiki you might already be doing this.)

Could you share the project? I'd like to be able to check what might be going wrong.
cs986870
Scratcher
16 posts

Why won’t my multiplayer scripts work?

Scratch said something about cloud variables can't hold letters, I was trying to use a server list but it didn't work and then Scratch said they will be making that possible soon but it hasn't come out yet :(.
hirsh001
Scratcher
100+ posts

Why won’t my multiplayer scripts work?

wait so if the timer block stops running for one person you could use that to tell that they are no longer logged in?
ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

Alberknyis wrote:

Programming a multiplayer engine is difficult because it requires you to do these three things:

  1. Add a player slot when a player joins
  2. Continuously send information through a cloud variable
  3. Remove a player slot when a player leaves

Step 2 requires you to know how to convert information from a list into a number. Step 3 basically requires you to be able to use the timer block. Step one in my opinion is the hardest (but that might be because I never got past that step) because you need to know how to deal with an allocating collision (when two players try to use the same cloud variable). I'd recommend you add player slots by checking the username of the player, basically brtommygun's solution. The problem is since it checks specific usernames only those people can use the project, but it lets you skip step 1 (since you used the scratch wiki you might already be doing this.)

Could you share the project? I'd like to be able to check what might be going wrong.
That list makes it look easy and I already published it and I am going to get the link
ScratchCatHELLO
Scratcher
1000+ posts

Why won’t my multiplayer scripts work?

hirsh001 wrote:

wait so if the timer block stops running for one person you could use that to tell that they are no longer logged in?
Maybe

Powered by DjangoBB