You would have to make a webpage that contains the Java applet. You can find out how to do so here:
http://scratch.mit.edu/forums/viewtopic.php?id=191
EDIT: Or, you could just share it as you would any other file, as Harakou suggested - but they would need to have Scratch installed to open it.
Last edited by coolstuff (2010-08-27 10:29:42)
Offline
Thanks Harakou - First I am using a mac!
I meant by share that I would like to be able to have a playable version of the game I made that I can share online or give to people who don't have scratch, not just share the actual file as data.
coolstuff - thanks - I already read the 10 page topic on it in advanced yesterday but I know nothing about html coding, and it didnt work for me, despite many tries. also i couldn't find the scratch.app file it said i needed. if you or anyone else would like to talk a noob through the process from scratch (no pun intended!) that would be much appreciated!
Any ideas?
thanks
Offline
Okeydokey! Step-by-step instructions (for the Mac, of course)!
There are two possible ways to distribute the project: via a webpage which doesn't have to be online (it is distributable in other ways), but must be viewed in a web browser, or on a CD or thumb drive by including the entire Scratch application. I'm assuming you'd like to do the former, but if you want to do the latter just let me know and I'll give you the instructions for that.
Create a folder anywhere on your hard drive - at least, in a place you have the rights to access. Call it whatever you want, and place the .sb file you want to be played right into that folder. Remember what your file is called.
Open up TextEdit and under the "format" menu, select "Make Plain Text" or something of the like. Then, copy and paste this code into the document:
<html> <body> <applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482"> <param name="project" value="testproject.sb"> </applet> </body> </html>
Replace the part of the code that says "testproject.sb" with the name of the Scratch file, then save the file as whatever you want, as long as it ends in .html and not .txt. If it asks you if you're sure you want to save it as an HTML file, say yes.
Download the following files:
http://scratch.mit.edu/static/misc/soundbank.gm
http://scratch.mit.edu/static/misc/ScratchApplet.jar
And place them in your folder. Double-click on your .html file to open it and it should open your web browser to play the project.
If you're planning on distributing the files, I'd suggest putting them in a .ZIP so that you can easily send it to them as one file. Right-click on your folder and select "create archive" to zip it up.
Hopefully that will help!
Offline