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

#1 2010-06-05 19:50:42

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

php + scratch = mmog?

Hello, I am jake451998, you all know that you can combine php and flash together and make an mmog. Now, your probably laugh at me but, can you do this with scratch? if not, maybe you can add this to the next version of scratch, to all the people who want to make mmos!

-jake451998  cool

Offline

 

#2 2010-06-05 19:59:57

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: php + scratch = mmog?

It's a great idea, but I think it's too complex for Scratch's target audience - kids who have little experience with programming. Scratch is appropriate for all ages and for people with all levels of programming experience, however (I know tons of programming languages, but I'm still usin' Scratch!), but it would still be too complex for the majority of Scratch users.

Offline

 

#3 2010-06-05 20:13:30

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

Re: php + scratch = mmog?

Well, there's Mesh - it let's different Scratch programs interact. You can read about it heresmile


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

Offline

 

#4 2010-06-05 21:08:33

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

Re: php + scratch = mmog?

I was actually thinking about this the other day, and I put together a mockup of a way to call PHP scripts here:

http://scratch.mit.edu/forums/viewtopic.php?id=37130

However what you're probably looking for is a persistent connection with the server to update player positions, inventory, etc, without calling the same URL over and over again. This would require socket functionality. (See the Wikipedia page: http://en.wikipedia.org/wiki/Internet_socket)

I would love for Scratch to get this feature, but it's very unlikely since sockets are the opposite of everything Scratch is supposed to be: devilishly complicated. However, you can still use mesh to build an MMOG (or so I hear) by using a Scratch project as a server. I don't know if you've seen the thread, but it's here:
http://scratch.mit.edu/forums/viewtopic.php?id=34524

If you really, really want to use a server running PHP to connect to Scratch, you can do so using Ruby, Python, or Flash as an intermediary. I'll get you started if you want.


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

Offline

 

#5 2010-06-06 12:08:38

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

Re: php + scratch = mmog?

coolstuff wrote:

It's a great idea, but I think it's too complex for Scratch's target audience - kids who have little experience with programming. Scratch is appropriate for all ages and for people with all levels of programming experience, however (I know tons of programming languages, but I'm still usin' Scratch!), but it would still be too complex for the majority of Scratch users.

true, scratch is to learn programming, maybe I should try it with visual c++

oh well,
-jake451998  cool

Offline

 

#6 2010-06-06 12:09:48

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

Re: php + scratch = mmog?

Jonathanpb wrote:

Well, there's Mesh - it let's different Scratch programs interact. You can read about it heresmile

That is true, although it only connects 2 computers at a time, I'm talking multiple machines and multiple servers, not evryone has a hatchami network though.

-jake451998  cool

Offline

 

#7 2010-06-06 12:13:15

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

Re: php + scratch = mmog?

fullmoon wrote:

I was actually thinking about this the other day, and I put together a mockup of a way to call PHP scripts here:

http://scratch.mit.edu/forums/viewtopic.php?id=37130

However what you're probably looking for is a persistent connection with the server to update player positions, inventory, etc, without calling the same URL over and over again. This would require socket functionality. (See the Wikipedia page: http://en.wikipedia.org/wiki/Internet_socket)

I would love for Scratch to get this feature, but it's very unlikely since sockets are the opposite of everything Scratch is supposed to be: devilishly complicated. However, you can still use mesh to build an MMOG (or so I hear) by using a Scratch project as a server. I don't know if you've seen the thread, but it's here:
http://scratch.mit.edu/forums/viewtopic.php?id=34524

If you really, really want to use a server running PHP to connect to Scratch, you can do so using Ruby, Python, or Flash as an intermediary. I'll get you started if you want.

nice, you had a similar idea!
true, you are correct, devilishly complex and difficult, We probably could if we were proffessional programmers, by the way if I want to learn more programming languages it's time to learn php and mysql and probably javascript.

-jake451998  cool

Last edited by jake451998 (2010-06-06 12:13:30)

Offline

 

#8 2012-03-09 15:20:48

j1103
Scratcher
Registered: 2012-02-22
Posts: 19

Re: php + scratch = mmog?

jake451998 wrote:

fullmoon wrote:

I was actually thinking about this the other day, and I put together a mockup of a way to call PHP scripts here:

http://scratch.mit.edu/forums/viewtopic.php?id=37130

However what you're probably looking for is a persistent connection with the server to update player positions, inventory, etc, without calling the same URL over and over again. This would require socket functionality. (See the Wikipedia page: http://en.wikipedia.org/wiki/Internet_socket)

I would love for Scratch to get this feature, but it's very unlikely since sockets are the opposite of everything Scratch is supposed to be: devilishly complicated. However, you can still use mesh to build an MMOG (or so I hear) by using a Scratch project as a server. I don't know if you've seen the thread, but it's here:
http://scratch.mit.edu/forums/viewtopic.php?id=34524

If you really, really want to use a server running PHP to connect to Scratch, you can do so using Ruby, Python, or Flash as an intermediary. I'll get you started if you want.

nice, you had a similar idea!
true, you are correct, devilishly complex and difficult, We probably could if we were proffessional programmers, by the way if I want to learn more programming languages it's time to learn php and mysql and probably javascript.

-jake451998  cool

yeah, but if you used mesh multiple times:
(and i mean like a hundred times.) you could possibly get like 1 or 2 hundred people.
...


oh how i love doughnuts......................................................

Offline

 

Board footer