<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Add Collectibles to Your AS3 Avoider Game</title>
	<atom:link href="http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/feed/" rel="self" type="application/rss+xml" />
	<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=collectibles-for-as3-avoider-game</link>
	<description>I help people make Flash games</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:23:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Michael Williams</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-3533</link>
		<dc:creator>Michael Williams</dc:creator>
		<pubDate>Tue, 02 Feb 2010 18:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-3533</guid>
		<description>&lt;p&gt;Ah, I think my spam detection is a little overzealous; it assumes that if you&#039;re writing loads of code you must be trying to h4ck t3h internetz or something.&lt;/p&gt;

&lt;p&gt;Hey, great work finding and fixing that bug!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ah, I think my spam detection is a little overzealous; it assumes that if you&#8217;re writing loads of code you must be trying to h4ck t3h internetz or something.</p>

<p>Hey, great work finding and fixing that bug!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: DudexD</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-3520</link>
		<dc:creator>DudexD</dc:creator>
		<pubDate>Sun, 31 Jan 2010 12:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-3520</guid>
		<description>&lt;p&gt;the deleting is inside codes. It just changes after i sumbit the comment, like i wrote this on first try&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
var j:int = collectibles.length - 1; // The Error is located here
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;But instead i ended up with this&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var j:int = collectibles.length - 1; -1 &lt;/pre -1 ) &lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;its kind of wird..&lt;/p&gt;

&lt;p&gt;And to the error; 
I found the Var. it was the var j:int&lt;/p&gt;

&lt;p&gt;it was both on&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var j:int = bullets.length - 1;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var j:int = collectibles.length - 1;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;so i just changed the J in the bullet var to k instead and the warning was gone :P&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>the deleting is inside codes. It just changes after i sumbit the comment, like i wrote this on first try</p>

<p><pre>
var j:int = collectibles.length - 1; // The Error is located here
</pre></p>

<p>But instead i ended up with this</p>

<p><pre>var j:int = collectibles.length - 1; -1 &lt;/pre -1 ) </pre></p>

<p>its kind of wird..</p>

<p>And to the error; 
I found the Var. it was the var j:int</p>

<p>it was both on</p>

<p><pre>var j:int = bullets.length - 1;</pre></p>

<p>and:</p>

<p><pre>var j:int = collectibles.length - 1;</pre></p>

<p>so i just changed the J in the bullet var to k instead and the warning was gone <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Williams</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-3514</link>
		<dc:creator>Michael Williams</dc:creator>
		<pubDate>Sun, 31 Jan 2010 04:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-3514</guid>
		<description>&lt;p&gt;It&#039;s deleting half your comment? Dang. I&#039;ve never seen that before. Uh, which half?&lt;/p&gt;

&lt;p&gt;Warnings often don&#039;t matter very much, but I understand wanting to have everything clean :)&lt;/p&gt;

&lt;p&gt;The warning you&#039;re getting just means that somewhere in your code, you have written &lt;code&gt;var someVariable&lt;/code&gt; twice for the same variable inside the same function. Any idea where?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It&#8217;s deleting half your comment? Dang. I&#8217;ve never seen that before. Uh, which half?</p>

<p>Warnings often don&#8217;t matter very much, but I understand wanting to have everything clean <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>The warning you&#8217;re getting just means that somewhere in your code, you have written <code>var someVariable</code> twice for the same variable inside the same function. Any idea where?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: DudexD</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-3511</link>
		<dc:creator>DudexD</dc:creator>
		<pubDate>Sat, 30 Jan 2010 11:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-3511</guid>
		<description>&lt;p&gt;i&#039;m getting an Error:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;Warning: 3596: Duplicate variable definition.&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;The game is working and stuff but, i don&#039;t want my game to be filled with errors :P&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
            var j:int = collectibles.length - 1; // The Error is located here
            var collectible:GoldenSkull;
        while ( j &gt; -1 )
            {
                collectible = collectibles[j];
                if ( PixelPerfectCollisionDetection.isColliding( avatar, collectible, this, true ) ) 
                {
                    removeChild( collectible );
                    collectibles.splice( j, 1 );
                    gameScore.addToValue( 25 );
                }
                i = army.length - 1;
                while ( i &gt; -1 )
                {
                    enemy = army[i];
                    if ( PixelPerfectCollisionDetection.isColliding( collectible, enemy, this, true ) ) 
                    {
                        removeChild( collectible );
                        collectibles.splice( j, 1 );
                        gameScore.addToValue( -25 );
                    }
                    i = i - 1;
                }
                j = j - 1;
            }
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Is it just me or Is the comment thing here kind of... Anoying?? since it keep on deleting half of my comment:?!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>i&#8217;m getting an Error:</p>

<p><pre>Warning: 3596: Duplicate variable definition.</pre></p>

<p>The game is working and stuff but, i don&#8217;t want my game to be filled with errors <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>

<p><pre>
            var j:int = collectibles.length - 1; // The Error is located here
            var collectible:GoldenSkull;
        while ( j &gt; -1 )
            {
                collectible = collectibles[j];
                if ( PixelPerfectCollisionDetection.isColliding( avatar, collectible, this, true ) ) 
                {
                    removeChild( collectible );
                    collectibles.splice( j, 1 );
                    gameScore.addToValue( 25 );
                }
                i = army.length - 1;
                while ( i &gt; -1 )
                {
                    enemy = army[i];
                    if ( PixelPerfectCollisionDetection.isColliding( collectible, enemy, this, true ) ) 
                    {
                        removeChild( collectible );
                        collectibles.splice( j, 1 );
                        gameScore.addToValue( -25 );
                    }
                    i = i - 1;
                }
                j = j - 1;
            }
</pre></p>

<p>Is it just me or Is the comment thing here kind of&#8230; Anoying?? since it keep on deleting half of my comment:?!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Williams</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1508</link>
		<dc:creator>Michael Williams</dc:creator>
		<pubDate>Tue, 26 May 2009 18:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1508</guid>
		<description>&lt;p&gt;I don&#039;t know of any other programs that let you create FLA files (though there might be some) but there are other ways of making Flash games without actually having Flash.&lt;/p&gt;

&lt;p&gt;I don&#039;t know much about these methods, but check out these links:&lt;/p&gt;

&lt;p&gt;http://www.brighthub.com/internet/web-development/articles/11010.aspx
http://www.scriptedfun.com/make-a-flash-game-for-free/
http://www.dreamincode.net/forums/showtopic92205.htm&lt;/p&gt;

&lt;p&gt;I hope they&#039;re helpful.&lt;/p&gt;

&lt;p&gt;If you can wait a little longer, the PushButton Engine will be released soon: http://pushbuttonengine.com/ -- take a look :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know of any other programs that let you create <acronym title="Flash source document">FLA</acronym> files (though there might be some) but there are other ways of making Flash games without actually having Flash.</p>

<p>I don&#8217;t know much about these methods, but check out these links:</p>

<p><a href="http://www.brighthub.com/internet/web-development/articles/11010.aspx" rel="nofollow">http://www.brighthub.com/internet/web-development/articles/11010.aspx</a>
<a href="http://www.scriptedfun.com/make-a-flash-game-for-free/" rel="nofollow">http://www.scriptedfun.com/make-a-flash-game-for-free/</a>
<a href="http://www.dreamincode.net/forums/showtopic92205.htm" rel="nofollow">http://www.dreamincode.net/forums/showtopic92205.htm</a></p>

<p>I hope they&#8217;re helpful.</p>

<p>If you can wait a little longer, the PushButton Engine will be released soon: <a href="http://pushbuttonengine.com/" rel="nofollow">http://pushbuttonengine.com/</a> &#8212; take a look <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1507</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Tue, 26 May 2009 18:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1507</guid>
		<description>&lt;p&gt;Is there any  free program like cs4? i tried flash develop that you mentioned but i cannot seem edit and create .flas in there. Is it only i that have missed it or doesn&#039;t it work?
Sorry for my bad english.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is there any  free program like cs4? i tried flash develop that you mentioned but i cannot seem edit and create .flas in there. Is it only i that have missed it or doesn&#8217;t it work?
Sorry for my bad english.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Williams</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1504</link>
		<dc:creator>Michael Williams</dc:creator>
		<pubDate>Tue, 26 May 2009 10:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1504</guid>
		<description>&lt;p&gt;Good good :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Good good <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1502</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Tue, 26 May 2009 08:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1502</guid>
		<description>&lt;p&gt;That code worked great!
So stupid i am for not thinking that one out myself. I had to decrease the spawning rate  a little bit but it&#039;s wotking fine.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That code worked great!
So stupid i am for not thinking that one out myself. I had to decrease the spawning rate  a little bit but it&#8217;s wotking fine.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Williams</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1482</link>
		<dc:creator>Michael Williams</dc:creator>
		<pubDate>Sun, 24 May 2009 16:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1482</guid>
		<description>&lt;p&gt;Hey Richard. Should be possible to use almost exactly the same code, like this:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
collectibleSpawnRate = 0.3 - ( 1 / ( levelNumber * 2 ) );
maxCollectiblesOnScreen = levelNumber;
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;I haven&#039;t tested that, so please let me know if there are any bugs :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Richard. Should be possible to use almost exactly the same code, like this:</p>

<p><pre>
collectibleSpawnRate = 0.3 - ( 1 / ( levelNumber * 2 ) );
maxCollectiblesOnScreen = levelNumber;
</pre></p>

<p>I haven&#8217;t tested that, so please let me know if there are any bugs <img src='http://gamedev.michaeljameswilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://gamedev.michaeljameswilliams.com/2009/04/08/collectibles-for-as3-avoider-game/comment-page-1/#comment-1472</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Sun, 24 May 2009 10:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://gamedev.michaeljameswilliams.com/?p=488#comment-1472</guid>
		<description>&lt;p&gt;Hi.
I wonder how you make so the collectible spawnrate continue to increase?
Like we do with thw enemies and level : &lt;/p&gt;

&lt;p&gt;&lt;pre&gt;pointsToReachNextLevel = levelNumber * 200;
enemySpawnRate = 0.5 - ( 2 / levelNumber );&lt;/pre&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi.
I wonder how you make so the collectible spawnrate continue to increase?
Like we do with thw enemies and level : </p>

<p><pre>pointsToReachNextLevel = levelNumber * 200;
enemySpawnRate = 0.5 - ( 2 / levelNumber );</pre></p>]]></content:encoded>
	</item>
</channel>
</rss>
