<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scratch Beginner&#039;s Guide &#187; Scratch How-to</title>
	<atom:link href="http://www.scratchguide.com/category/scratch-how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scratchguide.com</link>
	<description>A Scratch Tutorial by Michael Badger</description>
	<lastBuildDate>Thu, 29 Jul 2010 02:16:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Connect a PicoBoard on Linux</title>
		<link>http://www.scratchguide.com/picoboard-on-linux/</link>
		<comments>http://www.scratchguide.com/picoboard-on-linux/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 04:36:03 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=186</guid>
		<description><![CDATA[Recently, I came across a forum post somewhere that mentioned the PicoBoard (formerly called a Scratch Board) worked in Linux. So, I set off to see just how easy it would be to get my PicoBoard working on Ubuntu 9.10.
Picoboards provide external sensors that feed input from the real-world into Scratch. The sensors are light, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Fpicoboard-on-linux%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Fpicoboard-on-linux%2F" height="61" width="51" /></a></div><p><img class="alignright" title="Picoboard Image from PicoCricket" src="http://www.picocricket.com/picoboard_images/pbplainusb.png" alt="PicoBoard " width="227" height="141" />Recently, I came across a forum post somewhere that mentioned the PicoBoard (formerly called a Scratch Board) worked in Linux. So, I set off to see just how easy it would be to get my PicoBoard working on Ubuntu 9.10.</p>
<p>Picoboards provide external sensors that feed input from the real-world into Scratch. The sensors are light, sound, resistance, button clicks, and slide control. And they&#8217;re a blast to use. I highly recommend them.</p>
<p>First stop, the <a href="http://www.picocricket.com/picoboard.html">PicoBoard driver</a> download page. First the good news. There must be people requesting Linux drivers because the page supplies the ftdi_sio Serial to USB kernel driver as a download.</p>
<p>The bad news is that PicoCricket, is non-committal with the Linux support. Note the following screenshot with the &#8220;friendly&#8221; disclaimers.</p>
<p style="text-align: center;"><a href="http://www.scratchguide.com/wp-content/uploads/2010/02/picocricket-linux1.jpg"><img class="aligncenter size-full wp-image-188" style="border: 1px solid black;" title="picocricket-linux" src="http://www.scratchguide.com/wp-content/uploads/2010/02/picocricket-linux1.jpg" border="1" alt="" width="400" height="114" /></a></p>
<h3>No Driver Download Required</h3>
<p>The driver file on the download page is actually the FTDI USB Single Port Serial Converter. And if you visit the Sourceforge page for the <a href="http://ftdi-usb-sio.sourceforge.net/">project</a>, you&#8217;ll find this advice from the previous project maintainer, Bill Ryder:</p>
<blockquote><p>Use the most up to date linux kernel. This means 2.6.x or at least 2.4.30. The driver is included. I only ever  use 2.6.x kernels so if you are using 2.4.x you are on your own. The driver is marked experimental at the moment. But I&#8217;m going to change that because it isn&#8217;t experimental any more.</p></blockquote>
<p>Still, Scratch wasn&#8217;t detecting my PicoBoard. Though Linux was detecting the PicoBoard when I plugged it in the USB Port.</p>
<h3>Load the Module</h3>
<p>The ftdi_sio module is included with the kernel, but it wasn&#8217;t loaded for me. Here&#8217;s the command to load it:</p>
<pre>sudo modprobe ftdi_sio</pre>
<p>Now make sure the PicoBoard is plugged in and restart Scratch. The <strong>dmesg</strong> command is your friend here. It will give you feedback about how Linux is seeing the board. Here&#8217;s the last few lines of my dmesg output:</p>
<blockquote><p>[451394.964027] usb 4-1: new full speed USB device using uhci_hcd and address 5<br />
[451395.140265] usb 4-1: configuration #1 chosen from 1 choice<br />
[451395.144909] pl2303 4-1:1.0: pl2303 converter detected<br />
[451395.164947] usb 4-1: pl2303 converter now attached to ttyUSB0<br />
[451470.917714] USB Serial support registered for FTDI USB Serial Device<br />
[451470.917840] usbcore: registered new interface driver ftdi_sio<br />
[451470.917843] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver</p></blockquote>
<p>The first four lines is the kernel detecting the device. Then remaining lines appeared when I loaded the ftdi_sio module.</p>
<h3>A sample script</h3>
<p><a href="http://www.scratchguide.com/wp-content/uploads/2010/02/picoboard-script.gif"><img class="size-full wp-image-189 alignright" style="border: 1px solid black;" title="picoboard-script" src="http://www.scratchguide.com/wp-content/uploads/2010/02/picoboard-script.gif" alt="picoboard-script" width="244" height="145" /></a>Here&#8217;s a quick script to test out the PicoBoard. Cameron is going to love this, especially when we combine it with the webcam support.</p>
<p>If you run into problems, I can&#8217;t say that I will have the answer, but I&#8217;ll definitely try. Feel free to ask for support.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/picoboard-on-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Run Scratch from Flash Drives</title>
		<link>http://www.scratchguide.com/run-scratch-from-flash-drives/</link>
		<comments>http://www.scratchguide.com/run-scratch-from-flash-drives/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:10:47 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=156</guid>
		<description><![CDATA[Run the Scratch programming language from your your flash drive. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Frun-scratch-from-flash-drives%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Frun-scratch-from-flash-drives%2F" height="61" width="51" /></a></div><p>Do you need to overcome security restrictions in your computer lab that prevent you from installing Scratch onto the workstations? Or maybe, you always want to ensure you have access to a working installation of Scratch.</p>
<p>Thankfully, Scratch will run on a usb flash drive and the <a href="http://info.scratch.mit.edu/Scratch_1.4_Download">Scratch download</a> page provides a zip file that you can extract right onto the drive. You&#8217;ll need to look carefully for the link to the zip file. It&#8217;s buried in body copy.</p>
<p>Mac Users can install the dmg file to your flash drive.</p>
<p>Download the zip file and extract it to your flash drive. By default, you&#8217;ll extract the files to a Scratch folder on the flash drive.</p>
<p>To open Scratch go your USB drive , open the Scratch folder, and double click on the scratch.exe file.</p>
<h3>Add Scratch to PortableApps</h3>
<p><a href="http://www.scratchguide.com/wp-content/uploads/2010/01/scratchportable.jpg"><img class="aligncenter size-full wp-image-164" title="Scratch on PortableApps Launcher" src="http://www.scratchguide.com/wp-content/uploads/2010/01/scratchportable.jpg" alt="Scratch on PortableApps Launcher" width="391" height="208" /></a></p>
<p>PortableApps.com provides a convenient way for users to run many popular open source applications, such as OpenOffice.Org and Firefox from a flash drive. The suite provides a menu of applications when you click on the PortableApps.com icon in the Windows System Tray.</p>
<p>While the applications available directly from <a title="Portable Apps" href="http://www.PortableApps.com">http://www.PortableApps.com</a> have their own installers, adding Scratch to the Portable Apps menu is as simple as moving the Scratch program files to the right folder on the flash drive.</p>
<p>The PortableApps suite creates a PortableApps folder on the root of the flash drive with all the applications listed in a subfolder of the PortableApps folder.<br />
To make Scratch appear on the menu, extract the Scratch program files to the PortableApps folder; for example, E:\PortableApps\Scratch.</p>
<p>To make the PortableApps menu display the Scratch icon, open the PortableApps menu then select Options &gt; Refresh App Icons.</p>
<p>That&#8217;s a quick little hack. Anyone up for creating a real portable app installer, which would optimize Scratch for the flash drive?</p>
<p>This information adapted and reposted from chapter 2 of <a title="Scratch Book" href="http://www.scratchguide.com/scratch-book/">Scratch 1.4 Beginner&#8217;s Guide</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/run-scratch-from-flash-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animated Dragon in Scratch</title>
		<link>http://www.scratchguide.com/animated-dragon-in-scratch/</link>
		<comments>http://www.scratchguide.com/animated-dragon-in-scratch/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 18:19:29 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[broadcast]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=136</guid>
		<description><![CDATA[In Scratch programming, the broadcast block lets you coordinate events, so that one event triggers one or more new events. That&#8217;s a bit of an obtuse explanation. What&#8217;s an event?
Let&#8217;s make up a quick example and assume you call me on the phone.
Event: You dial my number.
Message: My phone rings .
Event: When I hear my [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Fanimated-dragon-in-scratch%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Fanimated-dragon-in-scratch%2F" height="61" width="51" /></a></div><p>In Scratch programming, the <strong>broadcast</strong> block lets you coordinate events, so that one event triggers one or more new events. That&#8217;s a bit of an obtuse explanation. What&#8217;s an event?</p>
<p>Let&#8217;s make up a quick example and assume you call me on the phone.</p>
<p><em>Event:</em> You dial my number.</p>
<p>Message: My phone rings .</p>
<p><em>Event: </em>When I hear my phone ring, I pick up my phone and look at the caller ID .</p>
<p><em>Event: </em>&#8220;Oh, I know that number,&#8221; I think. I answer the call.</p>
<p><em>Message:</em> I say, &#8220;hello.&#8221;</p>
<p>And on it goes.</p>
<p>The following Scratch video shows you the broadcast concept using an animated, fire and ice breathing dragon.  When the author clicks the &#8220;Fire&#8221; button, the dragon breathes fire (an orange flame). Click the &#8220;Ice&#8221; button and the dragon breathes the blue flame.  Not much different conceptually than making a decision about which phone call to answer.</p>
<p>The code snippets in the video are not readable,  but it does a good job of demonstrating the broadcast concept. I&#8217;m personally more enthralled with the actual animation of the dragon, which is one of the primary reasons for sharing.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/7OYWgoWnCyA&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/7OYWgoWnCyA&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Recently, <a href="http://twitter.com/Moodlegirl">@Moodlegirl</a> followed me on Twitter (<a href="http://twitter.com/mike_b">@mike_b</a>), and as I was looking through tweets,  I found this Scratch video.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/animated-dragon-in-scratch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self Host Scratch Projects</title>
		<link>http://www.scratchguide.com/self-host-scratch-projects/</link>
		<comments>http://www.scratchguide.com/self-host-scratch-projects/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 03:31:06 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>
		<category><![CDATA[interview]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=90</guid>
		<description><![CDATA[I originally posted this on my blog at badgerfiles.com blog, but it really deserves to be here.
When I was in Columbus, a couple people asked me how to host Scratch projects on your own web server. Scratch makes it easy to share projects on the web, but for one reason or another, some people may [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Fself-host-scratch-projects%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Fself-host-scratch-projects%2F" height="61" width="51" /></a></div><p>I originally posted this on my blog at badgerfiles.com blog, but it really deserves to be here.</p>
<p>When I was in Columbus, a couple people asked me how to host Scratch projects on your own web server. Scratch makes it easy to share projects on the web, but for one reason or another, some people may want to host projects on a server they control.</p>
<p>Here is how you can host your own projects.</p>
<ol>
<li>Download these two files from the Scratch web site and save them to your computer:
<ul>
<li><a href="http://scratch.mit.edu/static/misc/ScratchApplet.jar">http://scratch.mit.edu/static/misc/ScratchApplet.jar</a></li>
<li><a href="http://scratch.mit.edu/static/misc/soundbank.gm">http://scratch.mit.edu/static/misc/soundbank.gm</a></li>
</ul>
</li>
<li>Create a directory on the web server. For example, <code>scratch</code>.</li>
<li>Upload the ScratchApplet.jar and soundbank.gm files to the directory you<br />
just created on the web server.</li>
<li>Upload you Scratch project to the scratch directory you created on the web server.</li>
<li>Now, we need to build an HTML page to display the project. Save the following code as scratch.html:&lt;html&gt;<br />
&lt;title&gt;Scratch Project&lt;/title&gt;<br />
&lt;body&gt; &lt;applet id=&#8221;ProjectApplet&#8221; style=&#8221;display:block&#8221; code=&#8221;ScratchApplet&#8221; codebase=&#8221;./&#8221; archive=&#8221;ScratchApplet.jar&#8221; height=&#8221;387&#8243; width=&#8221;482&#8243;&gt;<br />
&lt;param name=&#8221;project&#8221; value=&#8221;<strong>project- name.sb</strong>&#8220;&gt; &lt;/param&gt;&lt;/applet&gt; &lt;/body&gt; &lt;/html&gt;</li>
<li>In the scratch.html code, find the value attribute and change<br />
<strong>project-name.sb</strong> to the filename and path, if necessary, of the project you uploaded to the web server.</li>
</ol>
<p>Open a web browser and view the URL of the page you created, http://www.example.com/scratch/scratch.html.</p>
<p>That&#8217;s all there is to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/self-host-scratch-projects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure Sprite Startup Conditions</title>
		<link>http://www.scratchguide.com/configure-sprite-startup-conditions/</link>
		<comments>http://www.scratchguide.com/configure-sprite-startup-conditions/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 03:30:03 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=82</guid>
		<description><![CDATA[One of the cool things about Scratch is that it remembers state.  If your sprite is in the center of the stage when the animation stops, the sprite will be in the center of the stage when the animation starts again. The same applies for costumes, direction, graphical effects, etc.
But what if you want to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Fconfigure-sprite-startup-conditions%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Fconfigure-sprite-startup-conditions%2F" height="61" width="51" /></a></div><p>One of the cool things about Scratch is that it remembers state.  If your sprite is in the center of the stage when the animation stops, the sprite will be in the center of the stage when the animation starts again. The same applies for costumes, direction, graphical effects, etc.</p>
<p>But what if you want to your sprite to reset everything when the project starts?</p>
<p>If you want to a sprite to do something specific at the start of the project, you need to program the startup conditions. Here are a few blocks to help you undo the actions of your scripts so that your sprites may start from defaults.</p>
<div id="attachment_84" class="wp-caption alignright" style="width: 199px"><img class="size-full wp-image-84 " style="float: right; border: 1px solid black;" title="Reset Blocks" src="http://www.scratchguide.com/wp-content/uploads/2009/11/reset_blocks.gif" alt="Reset Blocks" width="189" height="165" /><p class="wp-caption-text">Reset That Sprite</p></div>
<p><strong>go to </strong>- specify an x and y coordinate. Found in the motion palette.</p>
<p><strong>switch to costume</strong> &#8211; specify a costume. found in the Looks palette.</p>
<p><strong>clear graphic effects</strong> &#8211; Undo any graphical transformations such as color, pixelate, whirl, mosaic, brightness, ghost, and fisheye. Found in the Look palette.</p>
<p><strong>hide</strong> &#8211; The sprite is hidden from the stage. Found in the hide palette.</p>
<p><strong>show</strong> &#8211; The sprite is displayed on the stage. This is a default value, so it&#8217;s only useful if the sprite ends up hidden. Found in the Looks palette.</p>
<p><strong>clear </strong>- Undo the drawings from the pen tool. Found in the Pen palette.</p>
<p>These just a few useful blocks because they clear the stage of some of that animation clutter we may create with our projects. The point, of course, is if you want your sprite to start under specific conditions, program it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/configure-sprite-startup-conditions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Scratch on Ubuntu</title>
		<link>http://www.scratchguide.com/install-scratch-on-ubuntu/</link>
		<comments>http://www.scratchguide.com/install-scratch-on-ubuntu/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 01:16:02 +0000</pubDate>
		<dc:creator>Michael Badger</dc:creator>
				<category><![CDATA[Scratch How-to]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.scratchguide.com/?p=73</guid>
		<description><![CDATA[The Scratch Team have setup a repository on launchpad with the latest version for Ubuntu. Here are some quick instructions for Ubuntu Karmic Koala (9.10) and Jaunty (9.04).

Open Synaptic Package Manager from the System &#62; Administration.
From the Package menu, select Software Sources.
From the Software Sources dialog box, click on the Other Software tab and click [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scratchguide.com%2Finstall-scratch-on-ubuntu%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scratchguide.com%2Finstall-scratch-on-ubuntu%2F" height="61" width="51" /></a></div><p>The Scratch Team have setup a repository on <a title="Scratch on Launchapd" href="http://www.launchpad.net/~scratch">launchpad</a> with the latest version for Ubuntu. Here are some quick instructions for Ubuntu Karmic Koala (9.10) and Jaunty (9.04).</p>
<ol>
<li>Open <strong>Synaptic Package Manager</strong> from the System &gt; Administration.</li>
<li>From the <strong>Package</strong> menu, select <strong>Software Sources</strong>.</li>
<li>From the Software Sources dialog box, click on the <strong>Other Software</strong> tab and click <strong>Add&#8230;</strong></li>
<li>If you&#8217;re a Karmic Koala user, add the following repository when prompted:
<pre> deb http://ppa.launchpad.net/scratch/ppa/ubuntu karmic main</pre>
<p>Click <strong>Add&#8230;</strong> again to enter the source repository:</p>
<pre>deb-src http://ppa.launchpad.net/scratch/ppa/ubuntu karmic main</pre>
</li>
<li>If you use Jaunty (9.04) substitute these sources:
<pre>deb http://ppa.launchpad.net/scratch/ppa/ubuntu jaunty main</pre>
<pre>deb-src http://ppa.launchpad.net/scratch/ppa/ubuntu jaunty main</pre>
<p><div id="attachment_74" class="wp-caption alignnone" style="width: 410px"><img class="size-full wp-image-74" title="ubuntu-sources" src="http://www.scratchguide.com/wp-content/uploads/2009/11/ubuntu-sources.jpg" alt="Software Sources List" width="400" height="310" /><p class="wp-caption-text">Software Sources List</p></div></li>
<li>Click the <strong>Close</strong> button to close the software sources. You may be prompted that your repositories changes. Acknowledge the message.</li>
<li>Reload your package information by clicking the<strong> Reload</strong> button in Synaptic Package Manager.</li>
</ol>
<p>You can now search for &#8220;scratch&#8221; in Synaptic Package Manager and install Scratch as any other Ubuntu app. And now when the Scratch team updates the package, you can update with Ubuntu&#8217;s package management system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratchguide.com/install-scratch-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
