People need to know about this! BUMP!
Offline
@owetre18
Really? I can think of many reasons why other methods of doing multiplayer are a lot more powerful.
Offline
08jackt wrote:
scimonster wrote:
08jackt wrote:
hey i need some help
so i've activated mesh and every thing's fine but when i click for the drop down menu on the http://wiki.scratch.mit.edu/images/%28% … _Value.png block, it doesn't list any global variables. how do i get it to?It can only list them if it is connecting, which makes programming a little difficult. At least, that's my experience.
even when i am connected they still aren't listed
can anyone help?
(Wow I need to check Advanced Topics more)
If the two projects are connected, they should be there... are you sure that the projects are actually connected? Try broadcasting something to see if the other project receives it (broadcasts don't carry over in the list of broadcasts, but it'll work if the projects are connected).
Or maybe you don't have any variables to carry over? :S
Last edited by Jonathanpb (2011-08-31 18:59:15)
Offline
08jackt wrote:
hey i need some help
so i've activated mesh and every thing's fine but when i click for the drop down menu on the http://wiki.scratch.mit.edu/images/%28% … _Value.png block, it doesn't list any global variables. how do i get it to?
Connect mesh with a second window.
Offline
bobbybee wrote:
@owetre18
Really? I can think of many reasons why other methods of doing multiplayer are a lot more powerful.
Can you do it on 2 different computers with the other methods? I think not. I rest my case.
Offline
I have a question - Would people have to download my project into BYOB, or onto Scratch?
Offline
shamrocker wrote:
I have a question - Would people have to download my project into BYOB, or onto Scratch?
They could use either, as long as they have Mesh enabled on Scratch.
Offline
Ok
Offline
scmb1 wrote:
Cool tutorial! It was working fine for me until I got to the "Right-click and select "accept" part. I'm on a Mac, so I control-clicked, but nothing happened.
Command click
Offline
You right-click on the white area that appears when you Shift-click the R
And sorry for the late reply, I should really check Advanced Topics more often ^^
Offline
Question:What would happen if you were connected to 2 other projects in mesh which both had 2 different variables of the same name? Also, what would happen to the ([]sensor value) blocks that return variables from mesh when you leave mesh? Also, can a scratch project connect to a BYOB project or a panther project via mesh?
Last edited by joefarebrother (2011-10-11 15:25:42)
Offline
joefarebrother wrote:
Also, can a scratch project connect to a BYOB project or a panther project via mesh?
Yes.
Offline
scimonster wrote:
joefarebrother wrote:
Also, can a scratch project connect to a BYOB project or a panther project via mesh?
Yes.
But what happens if a BYOB global variable is set to a script or list or sprite?
Offline
TimeFreeze wrote:
I see a few people are having trouble with the mac right clicking, but I have found a solution ! Go to the bottom section of the browser, and on the left, above the scroll bar, there is a minus button. Click that, and you will see "accept (s)" somewhere towards the bottom.
Hope that helps, it sure did for me!
Thanks for pointing out the minus button. I could not right click to get to the accept changes on my Vista machine. The minus button is what I needed.
The tut works fine otherwise.
Thanks to everyone for the great info and hard work.
Offline
So, say I wanted one program to mesh with another of the same project, just running on a different computer, how could I make it so that on one project the arrow keys do one thing (the one that has joined) and on the other the arrows do a different thing?
Offline
Thenuclearduck wrote:
So, say I wanted one program to mesh with another of the same project, just running on a different computer, how could I make it so that on one project the arrow keys do one thing (the one that has joined) and on the other the arrows do a different thing?
Use these scripts to test connection:
when i receive [connect 1 v] set [connected v] to (1) //first assume connection if <(me) = (1)> broadcast [connect 2 v] and wait end set [connected v] to (0) //only if the other script doesn't wait when i receive [connect 2 v] set [connected v] to (1) if <(me) = (2)> broadcast [connect 1 v] and wait end set [connected v] to (0)When one of the above two scripts is activated, it will check if the "me" variable is equal to one or two. Then it calls the other script, which will interrupt the first one waiting for the second one to finish (if it is in the other version of the project (the only way the "me variable to be different)), and wait for that script to finish, which if it still connected will interrupt the other script which will interrupt the first script.....
when green flag clicked //or any hat ask [Are you player 1? or player 2?] and wait repeat until <<(answer) = (1)> or <(answer) = (2)>> ask (join (answer)[was not an option. Pick either 1 or 2.]) and wait end set [me v] to (answer) repeat until <(connected) = (1)> broadcast (join [connect ](me)) if <(me) = ([me v] sensor value)> say [Oops! Your opponent selected the same number! Press space to change player.] wait until <<key [space v] pressed?> or <not<(me) = ([me v] sensor value)>>> if <key [space v] pressed?> set [me v] to ((3) - (me)) say (join (join [You are now player ](me))(.)) for (1) secs else say (join (join [Other player changed. You are still player ](me))[.]) for (1) secs end end end forever if <(connected) = (0)> say [Connection error.] for (2) secs stop all end when i receive [something v]//scripts where each player should do something different if <(me) = (1)> stuff that player 1 does, not player 2 else stuff that player 2 does, not player 1 end
Last edited by joefarebrother (2012-02-17 17:12:08)
Offline
cameroncameron wrote:
Does anyone know if you can play with more than one other player with mesh. I want to make a scratch multiplayer RPG but I will need to be able to have more than 2 people online at once. Please help!!!
Ok, takes 1 variable, 1 list.
Image: http://imgur.com/ANtAt
For this example, I am using chat as variable, and client as list (mesh doesn't share lists ).
Image screenshotted directly from BYOB.
Offline
Noah1991 wrote:
Hi, I'm using Ubuntu Linux 9.04 and every time I try to save after activating Mesh it freezes and I have to force quit Scratch! Any ideas?
Ubuntu 10.10, same thing.
When I try to save the image, the top-left of a error window comes up, no other parts of it, and nothing responds.
Offline
AnonymousTom wrote:
Can you "Mesh" on the same I.P. address?
No in hosting the same I.P address, but yes when you're hosting an I.P address with a different person or different people joining.
Offline
CANT GET THIS TO WORK why WHYYY!!!!
Offline