Pages: 1 2
Topic closed
Hey guys, I made a video to show off my multiplayer pong game I made with the beta of scratch 1.4. The video is located @ http://www.scratch.mit.edu/ext/youtube/?v=5fzIiOnaYvA
I made this because I know people are looking forward to this feature probably more than any other feature in 1.4. While the new networking features are better than those in 1.3 its still pretty buggy.
Here are some errors I encountered:
If a variable is being updated too quickly, it is not sent to other computers
Sometimes, variables will not be sent to other computers, ever
This makes programming online multiplayer projects very difficult.
Last edited by archmage (2009-05-24 21:41:17)
Offline
All mesh does is share variables. The formulas you use don't make a difference.
Offline
What kinds of games did you have in mind to make? Mesh is buggy, which is probably why it is a hidden experimental hidden feature. Mesh's variable sharing bugs will make multiplayer games much harder to create.
Offline
I will release the code when 1.4 is out
Offline
keroro645 wrote:
Ok, I looked at an example project, and It had two versions of the project, so does that mean that if you want a two player game you have to have multiple versions of the project?.
No, you can combine them if you want but having 2 projects is much simpler.
Offline
You can really only do anything with mesh if you have 2 computers.
Offline
Even if you can use mesh, it will only support slow moving games. It has a real problem with fast moving games. Here are some ideas of what is possible
pictionary
checkers
chatrooms
simple tag games
Highscore boards
Nothing that has too many variables that update too quickly.
Offline
Have you tried something like
ballx = ballx to see if it triggers updates better ( I have no idea how the mechanics work)
Offline
Mike_W wrote:
Have you tried something like
ballx = ballx to see if it triggers updates better ( I have no idea how the mechanics work)
You have variables for everything.
Ballx is your x. If you have another player, you can create another ball variable.
Once you connect you can connect variables in sensors. And I have set something up
Offline
Well the problem is, that there is no send variables or broadcast commands. The 2 computers share all their variables and broadcasts. I think that what you are saying is that I should resend the variables if they are not in sync but this is not possible.
If anyone wants I can explain how the game was coded.
Last edited by archmage (2009-05-24 22:39:17)
Offline
archmage wrote:
Even if you can use mesh, it will only support slow moving games. It has a real problem with fast moving games. Here are some ideas of what is possible
pictionary
checkers
chatrooms
simple tag games
Highscore boards
Nothing that has too many variables that update too quickly.
Nice Ideas Maybe I'll try one of them...
Offline
when importing a project in 1.3.1, the variables from the imported project do not mix with the variables from the original.
please can you ask them to fix this?
Thanks,tcb
PS:I really need this for my scratch OS to work. It's supposed to be able to import new apps so that there can be infinite programs.This won't work if the variables and broadcasts wont mingle
Offline
tcb wrote:
when importing a project in 1.3.1, the variables from the imported project do not mix with the variables from the original.
please can you ask them to fix this?
Thanks,tcb
PS:I really need this for my scratch OS to work. It's supposed to be able to import new apps so that there can be infinite programs.This won't work if the variables and broadcasts wont mingle
however, scratch 1.2.1 works fine...I can't use that version because my OS uses lists and i cannot use jens's lists and files because I am already 3/4 done.Snd because without the extended memory of 1.3.1 scratch crashes...true story!
Offline
archmage wrote:
Well the problem is, that there is no send variables or broadcast commands. The 2 computers share all their variables and broadcasts. I think that what you are saying is that I should resend the variables if they are not in sync but this is not possible.
If anyone wants I can explain how the game was coded.
Broadcasts are also shared, you just have to type them in on both computers. You can also use the ip 127.0.0.1 and experiment with two scratch sessions communicating - just as if you where using two computers... Could be useful for creating a multiplayer board game.
What if you just create two variables "ball direction" and "ball speed", and a sync of x and y positions say every second? it would require way less network variable updates, and so allow you to create "fast" games. Still experimenting with that though.
Offline
Oh, I didn't know that you could connect to 127.0.0.1. That makes things much easier.
Offline
BWOG wrote:
Extremly laggy but pretty cool
BTW what is 127.0.0.1?
127.0.0.1 is a IP Address. But this is a "special" IP. When your on a computer and have a game and set 127.0.0.1 to the IP Address it sends all the info your sending from that computer to that same exact computer. So if you have 2 Scratch Sessions on the you have the first one broadcast lets say "Move forward" then on the other session it will receive "Move Forward" then do what's under it like move 10 steps forward.
Off Topic: Maybe I could make a game that can control another game. Like set the settings from 1 scratch session to another allowing you to control a game on another computer.. That would be cool...
Offline
Topic closed
Pages: 1 2