<?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: Building a Flash Tower Defense Game in (Part 10 Win or Lose)</title>
	<atom:link href="http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/</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: Richard</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-30796</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 01 Feb 2012 05:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-30796</guid>
		<description>Greetings!  I really like the tutorial.  I&#039;ve made it all the way here and everything&#039;s working quite well now.  I&#039;ve made several different maps and even some new baddies.  Now, what I&#039;m trying to do is have enemies spawn from more than just one location.  Does anyone have any advice on how I could implement something like this here?</description>
		<content:encoded><![CDATA[<p>Greetings!  I really like the tutorial.  I&#8217;ve made it all the way here and everything&#8217;s working quite well now.  I&#8217;ve made several different maps and even some new baddies.  Now, what I&#8217;m trying to do is have enemies spawn from more than just one location.  Does anyone have any advice on how I could implement something like this here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-26131</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Sun, 27 Nov 2011 13:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-26131</guid>
		<description>Ah man, this tutorial is ok, but not great.  First off, the fact that you scripted objects as well as the frame really is annoying. It is much better to simply use multiple layers and put code into each one, instead of this method.  Yes it works, but its still is annoying. Further more, why did you use entities, and gave them instance names, in order to create waypoints.  Why not just use an array and plot points in it?  Ah well, good tutorial for beginners, but bad for us intermediate programmers.</description>
		<content:encoded><![CDATA[<p>Ah man, this tutorial is ok, but not great.  First off, the fact that you scripted objects as well as the frame really is annoying. It is much better to simply use multiple layers and put code into each one, instead of this method.  Yes it works, but its still is annoying. Further more, why did you use entities, and gave them instance names, in order to create waypoints.  Why not just use an array and plot points in it?  Ah well, good tutorial for beginners, but bad for us intermediate programmers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukeelchul</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-25852</link>
		<dc:creator>lukeelchul</dc:creator>
		<pubDate>Wed, 23 Nov 2011 17:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-25852</guid>
		<description>Ok i started this tutorial developed on it and now i am bringing a number 2 of my tower defence game so because i like givving heres the sell btn im using sells the tower for half its original price.

dont copy straight away read it and look where the functions go.

function towerInfo(tower)
{
    _root.selectedTower = tower;
    _root.ranger._x = tower._x;
    _root.ranger._y = tower._y;
    _root.ranger._width = tower.range * 2;
    _root.ranger._height = tower.range * 2;
	
	_root.UpgradeTowerInfo._visible = true;
    if (tower.upgrades.length &gt;= tower.level)
    {
        _root.UpgradeTowerInfo.UpgradeInfoText.text = tower.upgrades[tower.level - 1][0];
		_root.UpgradeTowerInfo.TowerInfoText.text = &quot;Damage: &quot; + tower.damage + 
													&quot;\rRange: &quot; + tower.range + 
													&quot;\rSplash: &quot; + (tower.splash?&quot;Yes&quot;:&quot;No&quot;) +
													&quot;\rSlow: &quot; + (tower.slow?&quot;Yes&quot;:&quot;No&quot;) +
													&quot;\rPoison: &quot; + (tower.poison?&quot;Yes&quot;:&quot;No&quot;);
		_root.UpgradeTowerInfo.UpgradeText.gotoAndStop(1);
        _root.UpgradeTowerInfo.UpgradeButton.UpgradeButtonText.text = 
													&quot;Upgrade [$&quot; + tower.upgrades[tower.level - 1][1] + &quot;]&quot;;
        _root.UpgradeTowerInfo.UpgradeButton._visible = true;
_root.UpgradeTowerInfo.sellbtn._visible = true;//put this line here
    }
    else
    {
		_root.UpgradeTowerInfo.UpgradeText.gotoAndStop(2);
        _root.UpgradeTowerInfo.f.text = &quot;&quot;;
        _root.UpgradeTowerInfo.UpgradeButton._visible = false;
_root.UpgradeTowerInfo.sellbtn._visible = false;//and this here
        _root.UpgradeTowerInfo.h.text = &quot;&quot;;
    } // end else if	
}
put the lines in where it shows you in the towerInfo Function

put this at the bottom of your script.

function sell(){
	d = _root.selectedTower;
  _root.gold += d.cost;
d.removeMovieClip();
        _root.UpgradeTowerInfo.f.text = &quot;&quot;;
        _root.UpgradeTowerInfo.UpgradeButton._visible = false;
        _root.UpgradeTowerInfo.h.text = &quot;&quot;;
		_root.UpgradeTowerInfo.sellbtn._visible = false;
		_root.ranger.gotoAndStop(4);
updateInfoBar();
}

make a cell btn in the tower info panel and call it &quot;sellbtn&quot;

put this script in the sellbtn 

on(release){
_root.sell();
}

Now last but not least go into your towers scripts and change the cost variable to how much the tower will sell for dont make it more then what you buy the tower for are people could earn money.

this will not effect how much you buy your tower for</description>
		<content:encoded><![CDATA[<p>Ok i started this tutorial developed on it and now i am bringing a number 2 of my tower defence game so because i like givving heres the sell btn im using sells the tower for half its original price.</p>
<p>dont copy straight away read it and look where the functions go.</p>
<p>function towerInfo(tower)<br />
{<br />
    _root.selectedTower = tower;<br />
    _root.ranger._x = tower._x;<br />
    _root.ranger._y = tower._y;<br />
    _root.ranger._width = tower.range * 2;<br />
    _root.ranger._height = tower.range * 2;</p>
<p>	_root.UpgradeTowerInfo._visible = true;<br />
    if (tower.upgrades.length &gt;= tower.level)<br />
    {<br />
        _root.UpgradeTowerInfo.UpgradeInfoText.text = tower.upgrades[tower.level - 1][0];<br />
		_root.UpgradeTowerInfo.TowerInfoText.text = &#8220;Damage: &#8221; + tower.damage +<br />
													&#8220;\rRange: &#8221; + tower.range +<br />
													&#8220;\rSplash: &#8221; + (tower.splash?&#8221;Yes&#8221;:&#8221;No&#8221;) +<br />
													&#8220;\rSlow: &#8221; + (tower.slow?&#8221;Yes&#8221;:&#8221;No&#8221;) +<br />
													&#8220;\rPoison: &#8221; + (tower.poison?&#8221;Yes&#8221;:&#8221;No&#8221;);<br />
		_root.UpgradeTowerInfo.UpgradeText.gotoAndStop(1);<br />
        _root.UpgradeTowerInfo.UpgradeButton.UpgradeButtonText.text =<br />
													&#8220;Upgrade [$" + tower.upgrades[tower.level - 1][1] + &#8220;]&#8221;;<br />
        _root.UpgradeTowerInfo.UpgradeButton._visible = true;<br />
_root.UpgradeTowerInfo.sellbtn._visible = true;//put this line here<br />
    }<br />
    else<br />
    {<br />
		_root.UpgradeTowerInfo.UpgradeText.gotoAndStop(2);<br />
        _root.UpgradeTowerInfo.f.text = &#8220;&#8221;;<br />
        _root.UpgradeTowerInfo.UpgradeButton._visible = false;<br />
_root.UpgradeTowerInfo.sellbtn._visible = false;//and this here<br />
        _root.UpgradeTowerInfo.h.text = &#8220;&#8221;;<br />
    } // end else if<br />
}<br />
put the lines in where it shows you in the towerInfo Function</p>
<p>put this at the bottom of your script.</p>
<p>function sell(){<br />
	d = _root.selectedTower;<br />
  _root.gold += d.cost;<br />
d.removeMovieClip();<br />
        _root.UpgradeTowerInfo.f.text = &#8220;&#8221;;<br />
        _root.UpgradeTowerInfo.UpgradeButton._visible = false;<br />
        _root.UpgradeTowerInfo.h.text = &#8220;&#8221;;<br />
		_root.UpgradeTowerInfo.sellbtn._visible = false;<br />
		_root.ranger.gotoAndStop(4);<br />
updateInfoBar();<br />
}</p>
<p>make a cell btn in the tower info panel and call it &#8220;sellbtn&#8221;</p>
<p>put this script in the sellbtn </p>
<p>on(release){<br />
_root.sell();<br />
}</p>
<p>Now last but not least go into your towers scripts and change the cost variable to how much the tower will sell for dont make it more then what you buy the tower for are people could earn money.</p>
<p>this will not effect how much you buy your tower for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shondra</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-25353</link>
		<dc:creator>Shondra</dc:creator>
		<pubDate>Thu, 17 Nov 2011 21:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-25353</guid>
		<description>Hello there, I discovered your blog by the use of Google while looking for a comparable topic, your site got here up, it appears good. I&#039;ve bookmarked it in my google bookmarks.</description>
		<content:encoded><![CDATA[<p>Hello there, I discovered your blog by the use of Google while looking for a comparable topic, your site got here up, it appears good. I&#8217;ve bookmarked it in my google bookmarks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayame</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-16912</link>
		<dc:creator>Ayame</dc:creator>
		<pubDate>Fri, 15 Jul 2011 04:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-16912</guid>
		<description>Another thing you might want to go over is VISUAL upgrades. (When you upgrade a tower, it gets cooler/bigger/different color.

All in all an awesome tutorial, though. :)</description>
		<content:encoded><![CDATA[<p>Another thing you might want to go over is VISUAL upgrades. (When you upgrade a tower, it gets cooler/bigger/different color.</p>
<p>All in all an awesome tutorial, though. <img src='http://www.goofballgames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-6895</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 08 Jan 2011 23:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-6895</guid>
		<description>Wow Alex, that little snippet was very helpful!  I&#039;m having trouble implementing it so I really hope someone can do a full tutorial on it!</description>
		<content:encoded><![CDATA[<p>Wow Alex, that little snippet was very helpful!  I&#8217;m having trouble implementing it so I really hope someone can do a full tutorial on it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-6873</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 08 Jan 2011 11:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-6873</guid>
		<description>I think this tutorial is so helpful.  Here are some things I&#039;d like some help with, please.

-Pause button
-Fast Forward button [if possible]
-Different creeps for variety?
-Is it possible to have different graphics for bugs to represent higher upgrade levels instead of clicking on them in the middle of a round?

Really love this tutorial.  It certainly taught me some great things!</description>
		<content:encoded><![CDATA[<p>I think this tutorial is so helpful.  Here are some things I&#8217;d like some help with, please.</p>
<p>-Pause button<br />
-Fast Forward button [if possible]<br />
-Different creeps for variety?<br />
-Is it possible to have different graphics for bugs to represent higher upgrade levels instead of clicking on them in the middle of a round?</p>
<p>Really love this tutorial.  It certainly taught me some great things!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-6757</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 06 Jan 2011 12:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-6757</guid>
		<description>Thanks for this tutorial, it really was enlightening.</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial, it really was enlightening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-6680</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 05 Jan 2011 00:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-6680</guid>
		<description>I learned a lot from this tutorial. I have taken this very far, and almost all of it has your code, but it is very different. I added a sell button and it was very hard, but I think you guys should make a tutorial on it because everybody it begging for it, I am terrible at making tutorials but beginners should learn this. Basically you use the unloadMovie and _root.gold += _root.totaloverallvalue and the value is 70% of the cost and all upgrades, but I can&#039;t explain it all too well. I thank you, and i have referred some friends here.</description>
		<content:encoded><![CDATA[<p>I learned a lot from this tutorial. I have taken this very far, and almost all of it has your code, but it is very different. I added a sell button and it was very hard, but I think you guys should make a tutorial on it because everybody it begging for it, I am terrible at making tutorials but beginners should learn this. Basically you use the unloadMovie and _root.gold += _root.totaloverallvalue and the value is 70% of the cost and all upgrades, but I can&#8217;t explain it all too well. I thank you, and i have referred some friends here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael</title>
		<link>http://www.goofballgames.com/2010/01/31/building-a-flash-tower-defense-game-in-part-10-win-or-lose/comment-page-1/#comment-5140</link>
		<dc:creator>Raphael</dc:creator>
		<pubDate>Tue, 07 Dec 2010 04:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.goofballgames.com/?p=175#comment-5140</guid>
		<description>You should add a part to teach us how to sell towers and show creeps&#039; info (when clicked).  Thanks for the awesome tutorials!</description>
		<content:encoded><![CDATA[<p>You should add a part to teach us how to sell towers and show creeps&#8217; info (when clicked).  Thanks for the awesome tutorials!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

