<?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>Andrew Natoli &#187; Programming</title>
	<atom:link href="http://andrewnatoli.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewnatoli.com</link>
	<description>Freelance Everything-ist</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:11:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Two New GM Services in the Works</title>
		<link>http://andrewnatoli.com/2009/02/two-new-gm-services-in-the-works/</link>
		<comments>http://andrewnatoli.com/2009/02/two-new-gm-services-in-the-works/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 01:08:51 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=231</guid>
		<description><![CDATA[I would like to announce I&#8217;m starting work on two new resources that will soon be available to GM7 developers probably towards the end of this week. The first will be an online high score service, similar to the one &#8230; <a href="http://andrewnatoli.com/2009/02/two-new-gm-services-in-the-works/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I would like to announce I&#8217;m starting work on two new resources that will soon be available to GM7 developers probably towards the end of this week. The first will be an online high score service, similar to the one I used in &#8220;Cookz It &#8211; Chowder Time.&#8221; Users will be able to register for their own unique key to put into their games which will set them up with an online high score system. Secondly will be an online error logging service, as I built myself for Spherack Reloaded, which will automatically log any game errors to a webpage so you don&#8217;t need to force your users to report them manually.</p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=231&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2009/02/two-new-gm-services-in-the-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spherack 3 Promotional Video</title>
		<link>http://andrewnatoli.com/2009/01/spherack-3-promotional-video/</link>
		<comments>http://andrewnatoli.com/2009/01/spherack-3-promotional-video/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 06:05:13 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Spherack Reloaded]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=189</guid>
		<description><![CDATA[Presenting the first official Spherack Online 3 promotional video! It&#8217;s filled with awesome, beginning with me and my friend Mike jumping around like the characters in the game do, except with Nerf dart guns in the middle of no-where by &#8230; <a href="http://andrewnatoli.com/2009/01/spherack-3-promotional-video/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">Presenting the first official Spherack Online 3 promotional video! It&#8217;s filled with awesome, beginning with me and my friend Mike jumping around like the characters in the game do, except with Nerf dart guns in the middle of no-where by a frozen pond which we walked across prior to and survived. Anyway, HERE IT IS:</p>
<p style="text-align: center;"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/624S5JAuJNo&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/624S5JAuJNo&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=189&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2009/01/spherack-3-promotional-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spherack 3 Now Available at YoYoGames!</title>
		<link>http://andrewnatoli.com/2009/01/spherack-3-now-available-at-yoyogames/</link>
		<comments>http://andrewnatoli.com/2009/01/spherack-3-now-available-at-yoyogames/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 02:10:34 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Spherack Online]]></category>
		<category><![CDATA[Spherack Reloaded]]></category>
		<category><![CDATA[YoyoGames]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=184</guid>
		<description><![CDATA[Spherack Online&#8230; Added: 25 January 2009 By: Zappix I just released Spherack 3 at the official Game Maker Community; YoYoGames! Hopefully this will lead to an uprising in the game&#8217;s popularity and we&#8217;ll have more players and servers available. Additionally &#8230; <a href="http://andrewnatoli.com/2009/01/spherack-3-now-available-at-yoyogames/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="border: 1px solid #424242; margin: 30px; background: #000000 none repeat scroll 0% 0%; width: 177px; float: left;"><a href="http://www.yoyogames.com"><img style="border: 0; padding: 0; margin: 0;" src="http://www.yoyogames.com/images/embed/game_tag_bg.gif" alt="YoYoGames" /></a></p>
<div style="text-align: center; padding-top: 5px;"><a href="http://www.yoyogames.com/games/embed/68597"><img style="border: 2px solid #fff;" src="http://www.yoyogames.com/extras/image/name/san1/317/178317/medium/spherack3badge_3.jpg" alt="Spherack3badge_3" /></a></div>
<p style="font-size: 0.8em; font-family: arial; color: #c0c0c0; padding: 15px 10px; margin: 0;"><a style="color: #ccff00;" href="http://www.yoyogames.com/games/embed/68597">Spherack Online&#8230;</a><br />
<strong>Added: </strong>25 January 2009<br />
<strong>By:</strong> Zappix</p>
</div>
<p>I just released Spherack 3 at the official Game Maker Community; YoYoGames! Hopefully this will lead to an uprising in the game&#8217;s popularity and we&#8217;ll have more players and servers available. Additionally maybe I can get some feedback and suggestions now as to what to change in the game, as well as further bug reports so I can keep making it better.</p>
<p>I&#8217;ve also just released GML Patch 2009 there as well, and also have updated the Spherack Online 2 download with the latest installer&#8230; even though most likely nobody will use it, at least they can if they must. =]</p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=184&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2009/01/spherack-3-now-available-at-yoyogames/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;GML Patch 2009 Edition&#8221; Released!</title>
		<link>http://andrewnatoli.com/2009/01/gml-patch-2009-edition-released/</link>
		<comments>http://andrewnatoli.com/2009/01/gml-patch-2009-edition-released/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 03:48:25 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[GML Patch]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=175</guid>
		<description><![CDATA[Despite being miserable and sick with a sore throat that makes it nearly impossible to swallow my own saliva, I&#8217;ve released the first new version of GML Patch in nearly two years! Branded as &#8220;2009 Edition,&#8221; this new version adds &#8230; <a href="http://andrewnatoli.com/2009/01/gml-patch-2009-edition-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="GML Patch 2009" src="http://andrewnatoli.com/wp-content/uploads/2009/01/gmlpatch09_badge.png" alt="" width="175" height="120" />Despite being miserable and sick with a sore throat that makes it nearly impossible to swallow my own saliva, I&#8217;ve released the first new version of GML Patch in nearly two years! Branded as &#8220;2009 Edition,&#8221; this new version adds support for updates packaged in compressed ZIP Archives, meaning it can update far more than its predecessor!</p>
<p><a href="http://andrewnatoli.com/software/gml-patch-2009/">Roll on over to its page for more information and to download</a>.</p>
<p>Enjoy!</p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=175&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2009/01/gml-patch-2009-edition-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Great Performance with a Lower FPS</title>
		<link>http://andrewnatoli.com/2008/11/great-performance-with-a-lower-fps/</link>
		<comments>http://andrewnatoli.com/2008/11/great-performance-with-a-lower-fps/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 05:16:04 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[GML]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=119</guid>
		<description><![CDATA[Probably the biggest problem and set-back in Spherack Reloaded&#8217;s progress so far is the amount of lag that occurs while playing online with multiple players. Tons of information processing contributes to a significant drop in frames-per-second and the game becomes &#8230; <a href="http://andrewnatoli.com/2008/11/great-performance-with-a-lower-fps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Probably the biggest problem and set-back in Spherack Reloaded&#8217;s progress so far is the amount of lag that occurs while playing online with multiple players. Tons of information processing contributes to a significant drop in frames-per-second and the game becomes basically unplayable. However, after thinking for a bit, the idea hit me. <em>What if I could make the game run a few calculations to adjust the speeds of objects to how they&#8217;ll normally appear at a full FPS? </em>Simple really, all I had to do was divide the max FPS of the room by the current FPS. Looks like this:</p>
<p><code>speed = 5*(60/fps)</code></p>
<p>In the above scenario, 5 is the current speed of the object, 60 is the maximum frame-rate of the room (adjust to match yours or you&#8217;ll have weird results) and fps is the current FPS.</p>
<p>Seems to be working fine for me so far.</p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=119&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2008/11/great-performance-with-a-lower-fps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Projectile Speed on Mouse Position</title>
		<link>http://andrewnatoli.com/2008/10/projectile-speed-on-mouse-position/</link>
		<comments>http://andrewnatoli.com/2008/10/projectile-speed-on-mouse-position/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 17:45:23 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[GML]]></category>

		<guid isPermaLink="false">http://andrewnatoli.com/?p=77</guid>
		<description><![CDATA[Something I&#8217;ve been working on lately in one of my games is working in dynamic projectile speeds so players can strategically toss grenades to where they need to go rather than having to find some way to make the default &#8230; <a href="http://andrewnatoli.com/2008/10/projectile-speed-on-mouse-position/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Something I&#8217;ve been working on lately in one of my games is working in dynamic projectile speeds so players can strategically toss grenades to where they need to go rather than having to find some way to make the default speed work for them. So in my case, a player wants to throw a grenade to where their cursor is positioned. What I did was set up the angle calculations which is the easy part, though then there&#8217;s speed afterwards.</p>
<p><code>var mspd; //Creates the temporary value, mspd<br />
mspd =(point_distance(x,y,mouse_x,mouse_y)/16); //Sets mspd to our needed speed<br />
</code></p>
<p>The above GML finds the distance between the source of the projectile and your mouse cursor, then divides by 16 to adjust the returned value to a usable speed (otherwise it&#8217;d go quite fast) <span id="more-77"></span>This is how I used the code in my game:</p>
<p><code>var plyspd, gspd;<br />
plyspd = o_player.hsp //Horizontal Speed of My Character<br />
if plyspd &lt; 0 { plyspd=plyspd*-1; } //If player is moving backwards, switch negative speed to positive<br />
gspd = plyspd+(point_distance(x,y,mouse_x,mouse_y)/16) //Speed will be the calculated speed PLUS the speed the player is moving at<br />
if gspd &gt; (18.92)+plyspd { gspd = (18.92)+plyspd; } //Keeps the projectile from going rediculously fast by setting a limit plus the player's current speed</code></p>
<p><center><br />
<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="src" value="http://www.youtube.com/v/x3rWcUurtbs&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/x3rWcUurtbs&amp;hl=en&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" allowfullscreen="true"></embed></object></center><br />
Questions? Comments? Feel free to use this any way you may need to.</p>
<img src="http://andrewnatoli.com/?ak_action=api_record_view&id=77&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://andrewnatoli.com/2008/10/projectile-speed-on-mouse-position/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
