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

#1 2010-11-26 13:28:43

jude01
New Scratcher
Registered: 2010-11-13
Posts: 3

Publishing games to Facebook??!!

Any way of embedding the games as a facebook app?
Can you embedd completed game on a web page and pass parameters from game to php??

Any advance greatly appreciated...


Jude

Offline

 

#2 2010-11-26 13:33:45

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Publishing games to Facebook??!!

You can't pass anything between Scratch and PHP, but you can embed them. On the page for the project you want to embed, click "embed" on the right side of the screen, and then highlight the text under the "As an applet" label.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-11-26 13:45:51

jude01
New Scratcher
Registered: 2010-11-13
Posts: 3

Re: Publishing games to Facebook??!!

thanks very much for your help does that mean the game will be embedded as a java applet (or does applet not necessarily mean java .....sorry kind of new to this)
in which case it might  it be possible in theory to pass parameters through the Java Facebook API things like score, name etc?

Offline

 

#4 2010-11-26 17:44:59

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

Re: Publishing games to Facebook??!!

jude01 wrote:

thanks very much for your help does that mean the game will be embedded as a java applet (or does applet not necessarily mean java .....sorry kind of new to this)
in which case it might  it be possible in theory to pass parameters through the Java Facebook API things like score, name etc?

I think the Java Player just reads the Scratch Project and plays it in a Java environment, so I don't think that the variables in the Scratch project (e.g. score, lives) would be converted to variables in the Java applet, so I think that it would not be possible to use them in the Java Facebook API.  What were you planning on doing, making a highscore board?


~~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

 

Board footer