<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Build a Tower Defense Flash Game (Part 3 &#8211; Rotation and Realism)</title>
	<atom:link href="http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/</link>
	<description>We take games seriously</description>
	<lastBuildDate>Wed, 01 Feb 2012 05:00:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pelt</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-21984</link>
		<dc:creator>Pelt</dc:creator>
		<pubDate>Fri, 30 Sep 2011 20:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-21984</guid>
		<description>For those that can&#039;t get the creeps to rotate (but towers do):

Make sure you set up the Creep/CreepList correctly!  He touched on it in Part 1 but didn&#039;t really explain it in detail.

Create a CreepList movieclip symbol.  The actual drawing of the creep goes here.  If you had created the Creep movieclip (as I did), you can rename it to CreepList.

Create a Creep moiveclip symbol.  Drag the CreepList symbol into its drawing area.  Name the instance &#039;creep&#039;.

In the Scene 1 area where everything is at, drag the Creep symbol off to the side and name the instance &#039;creep1&#039;.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>For those that can&#8217;t get the creeps to rotate (but towers do):</p>
<p>Make sure you set up the Creep/CreepList correctly!  He touched on it in Part 1 but didn&#8217;t really explain it in detail.</p>
<p>Create a CreepList movieclip symbol.  The actual drawing of the creep goes here.  If you had created the Creep movieclip (as I did), you can rename it to CreepList.</p>
<p>Create a Creep moiveclip symbol.  Drag the CreepList symbol into its drawing area.  Name the instance &#8216;creep&#8217;.</p>
<p>In the Scene 1 area where everything is at, drag the Creep symbol off to the side and name the instance &#8216;creep1&#8242;.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxxie</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-12340</link>
		<dc:creator>Maxxie</dc:creator>
		<pubDate>Thu, 28 Apr 2011 15:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-12340</guid>
		<description>I can&#039;t seem to get my creeps to rotate, any suggestions?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get my creeps to rotate, any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kenny</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-11342</link>
		<dc:creator>kenny</dc:creator>
		<pubDate>Sat, 09 Apr 2011 13:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-11342</guid>
		<description>i tryd this over a miljion times but my own created creature wont turn.
it would be nice if you explain this so that one who does not use  flash every day in day out wil get this to.
the stupit thing is that if i copy of your code your creep it wil turn and move ( replace option when paste it)</description>
		<content:encoded><![CDATA[<p>i tryd this over a miljion times but my own created creature wont turn.<br />
it would be nice if you explain this so that one who does not use  flash every day in day out wil get this to.<br />
the stupit thing is that if i copy of your code your creep it wil turn and move ( replace option when paste it)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10023</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 18:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10023</guid>
		<description>Ok, what you have to do is rotate clockwise by 10° if the direction you want to face is between 0° and +180° of your current rotation or between -360° and -180° of your current rotation. Rotate counter-clockwise if the direction you want to face is between +180° and +360° of your current rotation or between -180° and 0° of your current rotation.

Ok finally, I hope that clarifies things.</description>
		<content:encoded><![CDATA[<p>Ok, what you have to do is rotate clockwise by 10° if the direction you want to face is between 0° and +180° of your current rotation or between -360° and -180° of your current rotation. Rotate counter-clockwise if the direction you want to face is between +180° and +360° of your current rotation or between -180° and 0° of your current rotation.</p>
<p>Ok finally, I hope that clarifies things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10019</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10019</guid>
		<description>Ok I&#039;m really sorry but the stupid site keeps changing my code. I give up, it&#039;s impossible. :&#039;(</description>
		<content:encoded><![CDATA[<p>Ok I&#8217;m really sorry but the stupid site keeps changing my code. I give up, it&#8217;s impossible. :&#8217;(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10018</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10018</guid>
		<description>if (
    (dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)
    ){_rotation -= 10;
} else {_rotation = dir;}</description>
		<content:encoded><![CDATA[<p>if (<br />
    (dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)<br />
    ){_rotation -= 10;<br />
} else {_rotation = dir;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10017</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10017</guid>
		<description>The code is too long or something. It completely changed the code. Dont use that either! :(</description>
		<content:encoded><![CDATA[<p>The code is too long or something. It completely changed the code. Dont use that either! <img src='http://www.goofballgames.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10016</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10016</guid>
		<description>if ((dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)) {
		_rotation -= 10;
	} else {
		_rotation = dir;
	}</description>
		<content:encoded><![CDATA[<p>if ((dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)) {<br />
		_rotation -= 10;<br />
	} else {<br />
		_rotation = dir;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10015</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10015</guid>
		<description>Crap it didn&#039;t post right. Don&#039;t use that! lol</description>
		<content:encoded><![CDATA[<p>Crap it didn&#8217;t post right. Don&#8217;t use that! lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crazy Joe</title>
		<link>http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-3-rotation-and-realism/comment-page-1/#comment-10014</link>
		<dc:creator>Crazy Joe</dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=161#comment-10014</guid>
		<description>Try replacing the rotation code with my own.
The code I used looks something like this:


if ((dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)) {
		_rotation -= 10;
	} else {
		_rotation = dir;
	}

That should do the trick! :)</description>
		<content:encoded><![CDATA[<p>Try replacing the rotation code with my own.<br />
The code I used looks something like this:</p>
<p>if ((dir&gt;_rotation+10 &amp;&amp; dir_rotation+10-360 &amp;&amp; dir_rotation-10+180 &amp;&amp; dir_rotation-10-180 &amp;&amp; dir&lt;_rotation-10)) {<br />
		_rotation -= 10;<br />
	} else {<br />
		_rotation = dir;<br />
	}</p>
<p>That should do the trick! <img src='http://www.goofballgames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

