This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-13 03:34:52

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

I'm looking to create a mesh game, help...?

I'm making a mesh submarine game, and I don't have a problem with the programming. But how do I create a co-op mesh part of the game?

I may post screenshots of the game when I can.


-End Transmission-

Offline

 

#2 2010-03-13 03:59:59

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

*bump*


-End Transmission-

Offline

 

#3 2010-03-13 04:49:19

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

Programming a project with Mesh is similar to programming a project for two players - but instead of having two controls on the same computer, you have one control on each computer.

Remember - the only extras with programming in Mesh is:
• Broadcasts are received on all computers
• You can use other computers' variables by using the ([slider] sensor value) block

Try and imagine it like a normal Scratch project that has two controls on the same computer - it's sort of like that. (But you're not supposed to program it like that, of course.)

Last edited by Jonathanpb (2010-03-13 04:49:40)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#4 2010-03-13 04:55:59

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

So...how do you program in mesh?


-End Transmission-

Offline

 

#5 2010-03-13 23:11:54

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

You don't 'program' in Mesh - Mesh is just a way to have different Scratch programs interact.

Hmm... maybe you could try experimenting with Mesh? It helps. (You can connect Scratch programs that are on the same computer.)

Last edited by Jonathanpb (2010-03-13 23:13:34)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2010-05-18 15:30:28

st3althdg
Scratcher
Registered: 2010-01-21
Posts: 5

Re: I'm looking to create a mesh game, help...?

so, with mesh can a person play the same game on the same project online?  or would they have to have two different projects, so you could play something together, or would you have to have two separate similar projects?

Offline

 

#7 2010-06-07 18:56:00

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: I'm looking to create a mesh game, help...?

st3althdg wrote:

so, with mesh can a person play the same game on the same project online?  or would they have to have two different projects, so you could play something together, or would you have to have two separate similar projects?

1. I think mesh is only for offline projects.

2. There would only be one project, but you would assign the actions to variables and broadcasts.


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#8 2010-06-07 19:16:00

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

If there are three or more computers connected to a mesh, how do you access the variables for the Scratch instance running on each one? Or can the clients only read the host's variables?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#9 2010-06-07 19:20:07

Thehero
Scratcher
Registered: 2010-02-15
Posts: 93

Re: I'm looking to create a mesh game, help...?

A quick question, how do I make a Mesh game on one project when I program the scratch project in TWO scratch windows. I get confused.

__________________________________________________________________

Thehero, big fan of


http://www.playbbg.com/wp-content/uploads/2009/05/tribal-wars.jpg

Offline

 

#10 2010-06-19 15:17:03

1stCorinthians
Scratcher
Registered: 2009-06-14
Posts: 52

Re: I'm looking to create a mesh game, help...?

I'm sorry, but Mesh only works offline. I attempted online and epicly failed.

Offline

 

#11 2010-06-19 15:58:29

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

1stCorinthians wrote:

I'm sorry, but Mesh only works offline. I attempted online and epicly failed.

Epic Fail. LOL.

Offline

 

#12 2010-08-08 15:01:20

fireaction2001
Scratcher
Registered: 2010-03-24
Posts: 12

Re: I'm looking to create a mesh game, help...?

how do you program in mesh  yikes  [blocks] <mesh> [/blocks]

Offline

 

#13 2010-08-09 05:07:50

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

fullmoon wrote:

If there are three or more computers connected to a mesh, how do you access the variables for the Scratch instance running on each one? Or can the clients only read the host's variables?

the program will return the value of the last variable that was changed (except its own)

Offline

 

#14 2011-05-08 13:28:07

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: I'm looking to create a mesh game, help...?

Umm... sorry I can't help... (I'm afraid of crashing the computer)


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#15 2011-05-08 13:38:02

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

The most common, is a scratch messaging system. The most creative made up one is probably scrolling/messaging or a game of some kind.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#16 2011-05-08 17:47:47

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

Here is a guide to Mesh.
• When a health bar or something changes, use a broadcast so it receives on all Scratch programs.
So, for example, you got a 2-player bar.
When 1 player sets it to a different value, a broadcast is then sent to do the same on the other player's Scratch program.
• Variables from another Scratch program are handled with a sensor block which does not have A connected option, but has a few motor options like tilt, etc. One of those handle variables from another Scratch program. When a mesh session is started with you, things get slightly different:
    • Broadcasts are sent to all Scratch programs.
    • As above, you can access eachother's variables.
That is pretty much what you need for a chat program in Scratch.

Offline

 

#17 2011-05-09 13:01:48

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

1stCorinthians wrote:

I'm sorry, but Mesh only works offline. I attempted online and epicly failed.

Was the fail so epic that it was almost a win?

Offline

 

#18 2011-05-09 14:28:58

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

Has this been resolved?
It's been megabumped yesterday, and I honestly even forgot I'd rpelied to this thread...  tongue

Offline

 

#19 2011-07-08 19:46:17

elimantor
Scratcher
Registered: 2011-04-03
Posts: 76

Re: I'm looking to create a mesh game, help...?

hey i haz a question how do u make a mesh where 2 people can play as 2 different sprites with the same exact controls please be specific


scratch 2.0 forever!  big_smile

Offline

 

#20 2011-07-09 10:31:34

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

Sorry this is a bit off topic, but you can play Mesh over the internet, it's just how your doing it is not working. You need to learn how to port forward. What happens is, a Scratcher 1 [Host] hosts a Mesh on their computer, then gives his IP to Scratcher 2 [Client], then Scratcher 2 types that in and presses connect, doesn't work! Because what happened was he connected to the Router, since the router wasn't listening on ports it told Scratcher 2 that it couldn't connect. So Scratcher 1 port forwards his router to his internal IP. ( 198.256.89.54:42001 [router] --> 10.0.0.54:42001 ) Basically he redirected port 42001 on his router to his computer: Scratcher 2 connects, it works!  big_smile  ( I'll see about making a tutorial about port forwarding )

Offline

 

#21 2011-07-09 11:15:32

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: I'm looking to create a mesh game, help...?

You can use hamachini for mesh


◕‿◕

Offline

 

#22 2011-11-23 09:46:50

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: I'm looking to create a mesh game, help...?

Magnie wrote:

Sorry this is a bit off topic, but you can play Mesh over the internet, it's just how your doing it is not working. You need to learn how to port forward. What happens is, a Scratcher 1 [Host] hosts a Mesh on their computer, then gives his IP to Scratcher 2 [Client], then Scratcher 2 types that in and presses connect, doesn't work! Because what happened was he connected to the Router, since the router wasn't listening on ports it told Scratcher 2 that it couldn't connect. So Scratcher 1 port forwards his router to his internal IP. ( 198.256.89.54:42001 [router] --> 10.0.0.54:42001 ) Basically he redirected port 42001 on his router to his computer: Scratcher 2 connects, it works!  big_smile  ( I'll see about making a tutorial about port forwarding )

Have you made a tutorial? Because whenever I try it fails. Even with a tutorial (I don't think it was a very good one)

Offline

 

#23 2011-11-23 11:21:43

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: I'm looking to create a mesh game, help...?

Magnie wrote:

Sorry this is a bit off topic, but you can play Mesh over the internet, it's just how your doing it is not working. You need to learn how to port forward. What happens is, a Scratcher 1 [Host] hosts a Mesh on their computer, then gives his IP to Scratcher 2 [Client], then Scratcher 2 types that in and presses connect, doesn't work! Because what happened was he connected to the Router, since the router wasn't listening on ports it told Scratcher 2 that it couldn't connect. So Scratcher 1 port forwards his router to his internal IP. ( 198.256.89.54:42001 [router] --> 10.0.0.54:42001 ) Basically he redirected port 42001 on his router to his computer: Scratcher 2 connects, it works!  big_smile  ( I'll see about making a tutorial about port forwarding )

I figured you could do it like that. I just didn't know which port


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#24 2011-11-23 17:44:49

didjexpert
Scratcher
Registered: 2011-05-09
Posts: 23

Re: I'm looking to create a mesh game, help...?

It's pretty easy. Scratch's mesh feature does most of this for you. Mesh detects if two people are running the same project, connected using the mesh mod, then broadcasts broadcast to ALL computers "mesh'd" together. So if something happens in one computer, make a broadcast for the event in the project, and say that when the project recieves the broadcast, then it should do _______. Making tutorial soon!


http://lunibook.com/signatures/Overbuild/maelstromFighterDeluxe/assembly.png

Offline

 

#25 2011-11-24 02:52:49

boy4life
New Scratcher
Registered: 2011-06-12
Posts: 2

Re: I'm looking to create a mesh game, help...?

<set{Scratch }to( Epic <forever>  smile

Offline

 

Board footer