<?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>Andonuts.net &#187; sprite</title>
	<atom:link href="http://andonuts.net/tag/sprite/feed/" rel="self" type="application/rss+xml" />
	<link>http://andonuts.net</link>
	<description>A blog about some nerd.</description>
	<lastBuildDate>Wed, 09 Feb 2011 21:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Dave&#8217;s Game Maker Guide</title>
		<link>http://andonuts.net/2009/10/daves-game-maker-guide/</link>
		<comments>http://andonuts.net/2009/10/daves-game-maker-guide/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 22:17:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Game Maker Guide]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[sheet]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://dcmsoftware.net/?p=59</guid>
		<description><![CDATA[A while back I started a guide of sorts on how to do various things within Game Maker. These tutorials can be found here, however, I&#8217;m going to be posting them here, and adding new ones as well. Hopefully that will get some more use out of this blog of mine. The first one is [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I started a guide of sorts on how to do various things within <em>Game Maker</em>. These tutorials can be found <a href="http://dcmsoftware.net/GMG/">here</a>, however, I&#8217;m going to be posting them here, and adding new ones as well. <img src='http://andonuts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Hopefully that will get some more use out of this blog of mine.</p>
<p>The first one is here: <em><strong>Loading Sprite Sheets</strong></em></p>
<p><span id="more-59"></span></p>
<p><strong>I. Get a Sprite Sheet</strong><br />
Find a sprite sheet before you start this tutorial! What is a sprite sheet you ask? A sprite sheet is usually a set of animations inside one non animated image. RPG Maker uses this type of setup and sprite rips are usually in this format as well. For this tutorial, I&#8217;ll be using the sprite sheet shown below.<br />
<img src="http://andonuts.net/GMG/Tutorials/Sprite_Sheets/Ssheet.png" alt="Sprite Sheet" /><br />
Each frame in that animation is 16&#215;24. The dimensions of a frame are good things to know when using sprite sheets &#8211; otherwise you&#8217;ll have to guess and check.</p>
<p><strong>II. Loading the Sheet<br />
</strong>Now we step into Game Maker. I&#8217;ll be using version 6.1 for my tutorials, so what your screen looks like may be different, but the steps should be the same. What we&#8217;ll do first is add a new sprite by clicking the red pacman icon in the toolbar. You&#8217;ll be presented with this screen:<br />
<img src="http://andonuts.net/GMG/Tutorials/Sprite_Sheets/Shot1.PNG" alt="Sprite Properties Window" width="500" height="286" /><br />
Now click the Edit Sprite button under the name input box. When the next window appears, click File &gt; Create from Strip. Select your sprite sheet from the dialog box that appears. When you select your image, you will be presented with this screen:<br />
<img src="http://andonuts.net/GMG/Tutorials/Sprite_Sheets/Shot3.PNG" alt="Loadin a Strip Image" width="500" height="327" /></p>
<p><strong>III. Setup</strong><br />
As you can see, I&#8217;ve already filled out the information on the left. I&#8217;ll run through each one and give a description.</p>
<ul>
<li><strong>Number of images:</strong> This is how many frames or images you want to take from the sheet. I typed 8 because there are 8 frames in this animation.</li>
<li><strong>Images per row:</strong> In a larger sprite sheet, there may be multiple rows of images. This number tells Game Maker how many are in a row so it can loop down to the next one if it needs to. There are 8 images per row in my sheet.</li>
<li><strong>Image width &amp; height:</strong> These numbers represent the dimensions of each frame or image that you&#8217;re selecting. Each frame of the animation in my sprite sheet is 16&#215;24 pixels.</li>
<li><strong>Horizontal cell offset</strong>: You would use this if you wanted to select some images or frames, but the ones you wanted were a few frames over from the left. I left this zero because I my frames started on the left, so I didn&#8217;t need it.</li>
<li><strong>Vertical  cell offset:</strong> This is the same as the above, only it works vertically from the top.</li>
<li><strong>Horizontal &amp; vertical pixel offset:</strong> These are used if your images are offset from the top-left of your sprite sheet. Say the top-left of the first image in the sprite sheet was 10 pixels from the left and 23 from the top. Your values would be 10 and 23 respectively.</li>
<li><strong>Horizontal &amp; vertical seperation:</strong> These are used if there is space between each frame of your animation. I didn&#8217;t use these because each frame of my animation put together takes up the entire sprite sheet. Had I changed the dimensions around to fit just the stickman then I would have used these settings, as well as the others I didn&#8217;t.</li>
</ul>
<p>You&#8217;ll need to fill in these values yourself. The values will be different with each sprite sheet.<strong></strong></p>
<p><strong>IV. Finishing Up</strong><br />
After you finish setting things up, click okay. You will then be taken back to the sprite animation window, and it should look something like this:<br />
<img src="http://andonuts.net/GMG/Tutorials/Sprite_Sheets/Shot4.PNG" alt="Finished Product" width="500" height="340" /><br />
And there you have it! An animation from a single file. Beats copying an pasting, huh?</p>
<p>Comments and questions can go below~<br />
Keep in mind that I wrote this probably a year ago too. It&#8217;s written using Game Maker 6.</p>
]]></content:encoded>
			<wfw:commentRss>http://andonuts.net/2009/10/daves-game-maker-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

