<?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: Flash game creation tutorial &#8211; part 5.1</title>
	<atom:link href="http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Mon, 15 Mar 2010 21:46:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ike</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-521481</link>
		<dc:creator>Ike</dc:creator>
		<pubDate>Fri, 13 Nov 2009 23:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-521481</guid>
		<description>Hey, Emanuele (or anyone with flash game experience)!
In your example, the character is fixed in the center of the screen, but I would like him to be in the down left corner of the screen (it&#039;s a platform game). What do I do in this case?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hey, Emanuele (or anyone with flash game experience)!<br />
In your example, the character is fixed in the center of the screen, but I would like him to be in the down left corner of the screen (it&#8217;s a platform game). What do I do in this case?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I NEED HELP!</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-520503</link>
		<dc:creator>I NEED HELP!</dc:creator>
		<pubDate>Thu, 12 Nov 2009 02:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-520503</guid>
		<description>BTW, for anyone that is trying to help me (the guy with the problem of making the speed a minimum,

EMAIL ME AT LEGOBANG@GMAIL.COM</description>
		<content:encoded><![CDATA[<p>BTW, for anyone that is trying to help me (the guy with the problem of making the speed a minimum,</p>
<p>EMAIL ME AT <a href="mailto:LEGOBANG@GMAIL.COM">LEGOBANG@GMAIL.COM</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I NEED HELP!</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-520475</link>
		<dc:creator>I NEED HELP!</dc:creator>
		<pubDate>Thu, 12 Nov 2009 01:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-520475</guid>
		<description>Okay, I am making a racing game, and I need to know how to make sure that the car doesn&#039;t go too fast. I&#039;ve put in this code:

if (_root.yspeed&gt;10){
     _root.yspeed = 10;


As you can see, I tried to copy the score thingy.
Also, what is Emanuele&#039;s email!?!?!?!?!?!?!?!


HELP ME</description>
		<content:encoded><![CDATA[<p>Okay, I am making a racing game, and I need to know how to make sure that the car doesn&#8217;t go too fast. I&#8217;ve put in this code:</p>
<p>if (_root.yspeed&gt;10){<br />
     _root.yspeed = 10;</p>
<p>As you can see, I tried to copy the score thingy.<br />
Also, what is Emanuele&#8217;s email!?!?!?!?!?!?!?!</p>
<p>HELP ME</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saul</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-488669</link>
		<dc:creator>saul</dc:creator>
		<pubDate>Fri, 21 Aug 2009 22:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-488669</guid>
		<description>hi i was wondering if it is possible to add enemies and possibly shooting in the scrolling game like the one in the tutorial. I have been trying to
add these things but do not seem to work or show up. any help would be appreciated</description>
		<content:encoded><![CDATA[<p>hi i was wondering if it is possible to add enemies and possibly shooting in the scrolling game like the one in the tutorial. I have been trying to<br />
add these things but do not seem to work or show up. any help would be appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-488521</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Fri, 21 Aug 2009 14:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-488521</guid>
		<description>cant i just have the camera on the ball ? or is there a way?</description>
		<content:encoded><![CDATA[<p>cant i just have the camera on the ball ? or is there a way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cameron</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-478859</link>
		<dc:creator>cameron</dc:creator>
		<pubDate>Thu, 30 Jul 2009 18:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-478859</guid>
		<description>argh this is frustrating me and a few others are making a game and we need the screen to move in sed of the character and it is givinge me all types of hell i evan used the part of the action script that makes the scrren move plz
 HeLP 
 ME</description>
		<content:encoded><![CDATA[<p>argh this is frustrating me and a few others are making a game and we need the screen to move in sed of the character and it is givinge me all types of hell i evan used the part of the action script that makes the scrren move plz<br />
 HeLP<br />
 ME</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Mooring</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-428693</link>
		<dc:creator>John Mooring</dc:creator>
		<pubDate>Fri, 10 Apr 2009 21:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-428693</guid>
		<description>You have two options with hitTests. Bounding box vs. bounding box, or pixel vs. actual shape. In the tutorial, he was testing a single point on the player against the terrain. You&#039;re testing a box drawn around the player vs. a box drawn around the terrain. The player is inside the terrain. You&#039;re dead as soon as you enter the frame.</description>
		<content:encoded><![CDATA[<p>You have two options with hitTests. Bounding box vs. bounding box, or pixel vs. actual shape. In the tutorial, he was testing a single point on the player against the terrain. You&#8217;re testing a box drawn around the player vs. a box drawn around the terrain. The player is inside the terrain. You&#8217;re dead as soon as you enter the frame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Mooring</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-428538</link>
		<dc:creator>John Mooring</dc:creator>
		<pubDate>Fri, 10 Apr 2009 16:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-428538</guid>
		<description>@wobalisk: yes.

Nice tutorial, but I notice you move the terrain. This makes having multiple &quot;stationary&quot; objects on screen at a time very difficult. Unless you always keep them orientated with the terrain, you will have problems. And if you need them to move, you will encounter even more problems. Solve this by moving the _root. Because the root is moving, you will also need to move the character in the opposite direction; this solves the multiple object problem, and, depending on the complexity of the map, can save you many lines of code.

Replace

_root.wall._y -=yspeed;
_root.wall._x -=xspeed;

With

_root._x-=xspeed;
_root._y-=yspeed;
_x+=xspeed;
_y+=yspeed;

Two extra lines of code here saves you dozens elsewhere.</description>
		<content:encoded><![CDATA[<p>@wobalisk: yes.</p>
<p>Nice tutorial, but I notice you move the terrain. This makes having multiple &#8220;stationary&#8221; objects on screen at a time very difficult. Unless you always keep them orientated with the terrain, you will have problems. And if you need them to move, you will encounter even more problems. Solve this by moving the _root. Because the root is moving, you will also need to move the character in the opposite direction; this solves the multiple object problem, and, depending on the complexity of the map, can save you many lines of code.</p>
<p>Replace</p>
<p>_root.wall._y -=yspeed;<br />
_root.wall._x -=xspeed;</p>
<p>With</p>
<p>_root._x-=xspeed;<br />
_root._y-=yspeed;<br />
_x+=xspeed;<br />
_y+=yspeed;</p>
<p>Two extra lines of code here saves you dozens elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e200</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-340848</link>
		<dc:creator>e200</dc:creator>
		<pubDate>Sat, 22 Nov 2008 03:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-340848</guid>
		<description>I tried to change one line of code as follows:
if (_root.wall.hitTest(this.hero_hit)) {

then it stopped working. Anyone has any ideas why?</description>
		<content:encoded><![CDATA[<p>I tried to change one line of code as follows:<br />
if (_root.wall.hitTest(this.hero_hit)) {</p>
<p>then it stopped working. Anyone has any ideas why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wobalisk</title>
		<link>http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/comment-page-2/#comment-315617</link>
		<dc:creator>wobalisk</dc:creator>
		<pubDate>Mon, 27 Oct 2008 16:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/#comment-315617</guid>
		<description>ok I have my first on sorted out (see last post), however I have been trying to add some of your techniques together and have managed a scrolling, death counting with invulnerability game and can add moving blocks.

The problem I am having is that I want multiple moving blocks at once without having to add a line in the player code saying :

MovingBlock1._x -= xspeed;
MovingBlock2._x -= xspeed;
etc...

Is there anyway to move an entire layer with all the objects that should move relative to the player in it or something?</description>
		<content:encoded><![CDATA[<p>ok I have my first on sorted out (see last post), however I have been trying to add some of your techniques together and have managed a scrolling, death counting with invulnerability game and can add moving blocks.</p>
<p>The problem I am having is that I want multiple moving blocks at once without having to add a line in the player code saying :</p>
<p>MovingBlock1._x -= xspeed;<br />
MovingBlock2._x -= xspeed;<br />
etc&#8230;</p>
<p>Is there anyway to move an entire layer with all the objects that should move relative to the player in it or something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
