<?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: Moving Stuff Around in XNA!</title>
	<atom:link href="http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/</link>
	<description>Game Development Demystified! and other thoughts...</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:34:18 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tweebiebird</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-2763</link>
		<dc:creator>Tweebiebird</dc:creator>
		<pubDate>Fri, 09 Sep 2011 05:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-2763</guid>
		<description>How does rotation work in XNA ?
 P.S Thanks for the awesome tutorials.</description>
		<content:encoded><![CDATA[<p>How does rotation work in XNA ?<br />
 P.S Thanks for the awesome tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-2416</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Tue, 02 Aug 2011 12:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-2416</guid>
		<description>Thanks alot for the tuts.
XNA looks simple after reading your tuts.</description>
		<content:encoded><![CDATA[<p>Thanks alot for the tuts.<br />
XNA looks simple after reading your tuts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nazeeh</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1330</link>
		<dc:creator>nazeeh</dc:creator>
		<pubDate>Wed, 05 Jan 2011 00:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1330</guid>
		<description>Bingo. You got it. 

No.. I don&#039;t have my email address on this site :) I prefer to use comments and stuff.</description>
		<content:encoded><![CDATA[<p>Bingo. You got it. </p>
<p>No.. I don&#8217;t have my email address on this site :) I prefer to use comments and stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MadDog</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1318</link>
		<dc:creator>MadDog</dc:creator>
		<pubDate>Mon, 03 Jan 2011 13:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1318</guid>
		<description>Yes. The &#039;if&#039; explanation made a lot of sense. But I&#039;m a little confused about &#039;while&#039;. Oh wait. Is it like this? Since while is a loop, it won&#039;t break unless the condition becomes false. So that&#039;s why, the while loop keeps looping until the condition&#039;s false (by which time, X&#039;s value has become 545), and THEN exits the update method? So that means all the calculation is done at the first call itself. Hence, the first time draw is called, the value of X is 545. Is my explanation right? I know it may sound like holding your right ear with your left hand instead of your right hand. But, am I right?
Oh and also, did you happen to mention your email anywhere on the site?</description>
		<content:encoded><![CDATA[<p>Yes. The &#8216;if&#8217; explanation made a lot of sense. But I&#8217;m a little confused about &#8216;while&#8217;. Oh wait. Is it like this? Since while is a loop, it won&#8217;t break unless the condition becomes false. So that&#8217;s why, the while loop keeps looping until the condition&#8217;s false (by which time, X&#8217;s value has become 545), and THEN exits the update method? So that means all the calculation is done at the first call itself. Hence, the first time draw is called, the value of X is 545. Is my explanation right? I know it may sound like holding your right ear with your left hand instead of your right hand. But, am I right?<br />
Oh and also, did you happen to mention your email anywhere on the site?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nazeeh</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1316</link>
		<dc:creator>nazeeh</dc:creator>
		<pubDate>Mon, 03 Jan 2011 06:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1316</guid>
		<description>Ah..simple.

This code is in the &quot;Update&quot; method. This method gets called 60 times a second. So let&#039;s look at the &quot;if&quot; example first:

first time the update method gets called, the &quot;if&quot; statement will increase the X by 5 and then exit the &quot;update&quot; method. Right after that, the Draw method will be called and will redraw the ball in the updated position hence &quot;move&quot; it. Then the update gets called again, X changes, draw is called, etc. So you see the ball moving because the DRAW is being called after every update.

The &quot;while&quot; loop is different though. It makes it so that the entire update to X is done in ONE update call. After that is done, the Draw gets called with the FINAL position of X, in your case: 545. 

makes sense?</description>
		<content:encoded><![CDATA[<p>Ah..simple.</p>
<p>This code is in the &#8220;Update&#8221; method. This method gets called 60 times a second. So let&#8217;s look at the &#8220;if&#8221; example first:</p>
<p>first time the update method gets called, the &#8220;if&#8221; statement will increase the X by 5 and then exit the &#8220;update&#8221; method. Right after that, the Draw method will be called and will redraw the ball in the updated position hence &#8220;move&#8221; it. Then the update gets called again, X changes, draw is called, etc. So you see the ball moving because the DRAW is being called after every update.</p>
<p>The &#8220;while&#8221; loop is different though. It makes it so that the entire update to X is done in ONE update call. After that is done, the Draw gets called with the FINAL position of X, in your case: 545. </p>
<p>makes sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MadDog</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1306</link>
		<dc:creator>MadDog</dc:creator>
		<pubDate>Sun, 02 Jan 2011 02:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1306</guid>
		<description>Hey nazeeh. I had a small doubt.

What is the difference between:
1)

while (ballPosition.X != 545)
{
ballPositon.X += 5;
}

2)

if (ballPosition.X != 545)
{
ballPositon.X += 5;
}

I&#039;m trying to automate the process of movement. The object will move until it&#039;s X co-ordinate reaches the value 545, after which, it will stop moving. Now, when I used the &#039;if&#039; statement to do this, I could actually see the object moving when I compile the game. But when I used the &#039;when&#039; loop, as soon as the game would compile, the object would be at X co-ordinate 545. Please explain the reason to me if possible.</description>
		<content:encoded><![CDATA[<p>Hey nazeeh. I had a small doubt.</p>
<p>What is the difference between:<br />
1)</p>
<p>while (ballPosition.X != 545)<br />
{<br />
ballPositon.X += 5;<br />
}</p>
<p>2)</p>
<p>if (ballPosition.X != 545)<br />
{<br />
ballPositon.X += 5;<br />
}</p>
<p>I&#8217;m trying to automate the process of movement. The object will move until it&#8217;s X co-ordinate reaches the value 545, after which, it will stop moving. Now, when I used the &#8216;if&#8217; statement to do this, I could actually see the object moving when I compile the game. But when I used the &#8216;when&#8217; loop, as soon as the game would compile, the object would be at X co-ordinate 545. Please explain the reason to me if possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: criollo</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1102</link>
		<dc:creator>criollo</dc:creator>
		<pubDate>Wed, 10 Nov 2010 02:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1102</guid>
		<description>Got it, 
Asset name/File name</description>
		<content:encoded><![CDATA[<p>Got it,<br />
Asset name/File name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: criollo</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-1101</link>
		<dc:creator>criollo</dc:creator>
		<pubDate>Tue, 09 Nov 2010 23:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-1101</guid>
		<description>not clear how does it know ball refers to ball.png</description>
		<content:encoded><![CDATA[<p>not clear how does it know ball refers to ball.png</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: topalov</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-746</link>
		<dc:creator>topalov</dc:creator>
		<pubDate>Thu, 08 Jul 2010 08:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-746</guid>
		<description>nice tutorial</description>
		<content:encoded><![CDATA[<p>nice tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zain</title>
		<link>http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/comment-page-1/#comment-557</link>
		<dc:creator>Zain</dc:creator>
		<pubDate>Wed, 25 Nov 2009 05:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.nazspace.com/wp/2007/12/05/moving-stuff-around-in-xna/#comment-557</guid>
		<description>nice tutorial, this xna&#039;s code really similar with action script</description>
		<content:encoded><![CDATA[<p>nice tutorial, this xna&#8217;s code really similar with action script</p>
]]></content:encoded>
	</item>
</channel>
</rss>

