<?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: From zero to Bombuzal &#8211; step 2</title>
	<atom:link href="http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Andre Marianiello</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-88033</link>
		<dc:creator>Andre Marianiello</dc:creator>
		<pubDate>Tue, 26 Feb 2008 20:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-88033</guid>
		<description>buffer = 25;//max distance the edge of the level can get away from edge of the stage
if(level._width&gt;Stage.width and level._height&gt;Stage.height){
level.onEnterFrame = function() {
    // pan right
    if (_root._xmouseStage.width-pan_dist) {
        level._x -= pan_speed;
    }
    // pan down 
    if (_root._ymouseStage.height-pan_dist) {
        level._y -= pan_speed;
    }
if(level._x&gt;Stage.width-buffer-level._width/2){
    level._x=Stage.width-buffer-level._width/2
}
if(level._xStage.height-buffer-level._height/2){
   level._y=Stage.height-buffer-level._height/2
}
if(level._y&lt;Stage.height+buffer+level._height/2){
   level._y=Stage.height+buffer+level._height/2
}
};
}</description>
		<content:encoded><![CDATA[<p>buffer = 25;//max distance the edge of the level can get away from edge of the stage<br />
if(level._width&gt;Stage.width and level._height&gt;Stage.height){<br />
level.onEnterFrame = function() {<br />
    // pan right<br />
    if (_root._xmouseStage.width-pan_dist) {<br />
        level._x -= pan_speed;<br />
    }<br />
    // pan down<br />
    if (_root._ymouseStage.height-pan_dist) {<br />
        level._y -= pan_speed;<br />
    }<br />
if(level._x&gt;Stage.width-buffer-level._width/2){<br />
    level._x=Stage.width-buffer-level._width/2<br />
}<br />
if(level._xStage.height-buffer-level._height/2){<br />
   level._y=Stage.height-buffer-level._height/2<br />
}<br />
if(level._y&lt;Stage.height+buffer+level._height/2){<br />
   level._y=Stage.height+buffer+level._height/2<br />
}<br />
};<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: From zero to Bombuzal - step 3 : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-87970</link>
		<dc:creator>From zero to Bombuzal - step 3 : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Tue, 26 Feb 2008 15:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-87970</guid>
		<description>[...] the previous step we had the problem of the level panning away if the mouse is outside the [...]</description>
		<content:encoded><![CDATA[<p>[...] the previous step we had the problem of the level panning away if the mouse is outside the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xodus</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-87172</link>
		<dc:creator>Xodus</dc:creator>
		<pubDate>Sun, 24 Feb 2008 13:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-87172</guid>
		<description>well, why do you have to make the mouse pan all the time? why don&#039;t you only make the mouse pan when the space button is pressed? so if you want to move your mouse off the stage, you wouldn&#039;t hold down space, and no one would pan unless they needed to, so it solves the 2nd problem too.</description>
		<content:encoded><![CDATA[<p>well, why do you have to make the mouse pan all the time? why don&#8217;t you only make the mouse pan when the space button is pressed? so if you want to move your mouse off the stage, you wouldn&#8217;t hold down space, and no one would pan unless they needed to, so it solves the 2nd problem too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-87155</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 24 Feb 2008 12:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-87155</guid>
		<description>would it be easier to name the tile and bomb movies with x and y in the movie&#039;s name ex: &quot;tile_&quot;+y+&quot;_&quot;+x, and &quot;bomb_&quot;+y+&quot;_&quot;+x, instead of using &quot;tile&quot;+level.getNextHighestDepth(), ?

(someone else made this suggestion to me and I found it usefull)</description>
		<content:encoded><![CDATA[<p>would it be easier to name the tile and bomb movies with x and y in the movie&#8217;s name ex: &#8220;tile_&#8221;+y+&#8221;_&#8221;+x, and &#8220;bomb_&#8221;+y+&#8221;_&#8221;+x, instead of using &#8220;tile&#8221;+level.getNextHighestDepth(), ?</p>
<p>(someone else made this suggestion to me and I found it usefull)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: souled</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-87141</link>
		<dc:creator>souled</dc:creator>
		<pubDate>Sun, 24 Feb 2008 11:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-87141</guid>
		<description>Logic. :)</description>
		<content:encoded><![CDATA[<p>Logic. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gas</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-86992</link>
		<dc:creator>gas</dc:creator>
		<pubDate>Sun, 24 Feb 2008 03:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-86992</guid>
		<description>Using &quot;tollerance&quot;?

[code]

// panning level
level.onEnterFrame = function() {
	tolerance = 10;
	dontmove = false;
	if ((_root._xmouse&gt;Stage.width-tolerance) or (_root._ymouse&gt;Stage.height-tolerance) or (_root._xmouse&lt;tolerance) or (_root._ymouse&lt;tolerance)) {
		dontmove = true;
	}
	if (!dontmove) {
		// pan right
		if (_root._xmouseStage.width-pan_dist) {
			level._x -= pan_speed;
		}
		// pan down    
		if (_root._ymouseStage.height-pan_dist) {
			level._y -= pan_speed;
		}
	}
};

[/code]

I think it&#039;s better than having an overall button that can cause problem with other buttons... ;) :)</description>
		<content:encoded><![CDATA[<p>Using &#8220;tollerance&#8221;?</p>
<p>[code]</p>
<p>// panning level<br />
level.onEnterFrame = function() {<br />
	tolerance = 10;<br />
	dontmove = false;<br />
	if ((_root._xmouse&gt;Stage.width-tolerance) or (_root._ymouse&gt;Stage.height-tolerance) or (_root._xmouse&lt;tolerance) or (_root._ymouse&lt;tolerance)) {<br />
		dontmove = true;<br />
	}<br />
	if (!dontmove) {<br />
		// pan right<br />
		if (_root._xmouseStage.width-pan_dist) {<br />
			level._x -= pan_speed;<br />
		}<br />
		// pan down<br />
		if (_root._ymouseStage.height-pan_dist) {<br />
			level._y -= pan_speed;<br />
		}<br />
	}<br />
};</p>
<p>[/code]</p>
<p>I think it&#8217;s better than having an overall button that can cause problem with other buttons&#8230; ;) :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: styxtwo</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-86903</link>
		<dc:creator>styxtwo</dc:creator>
		<pubDate>Sun, 24 Feb 2008 00:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-86903</guid>
		<description>cool souled how did you do it ?</description>
		<content:encoded><![CDATA[<p>cool souled how did you do it ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: souled</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-86870</link>
		<dc:creator>souled</dc:creator>
		<pubDate>Sat, 23 Feb 2008 22:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-86870</guid>
		<description>Oh, and here&#039;s an example:

http://www.ngup.net/view?file=668

Hope that&#039;s what you need! :)</description>
		<content:encoded><![CDATA[<p>Oh, and here&#8217;s an example:</p>
<p><a href="http://www.ngup.net/view?file=668" rel="nofollow">http://www.ngup.net/view?file=668</a></p>
<p>Hope that&#8217;s what you need! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: souled</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-86867</link>
		<dc:creator>souled</dc:creator>
		<pubDate>Sat, 23 Feb 2008 21:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-86867</guid>
		<description>I don&#039;t think I need to send you a new .fla, just replace the code with what I&#039;ve done. I put it up here:

http://souled.newgrounds.com/news/post/85482

I&#039;ve fixed the panning and the other problem, however it does now have a button across the entire stage, so it would look better with a custom mouse. :/</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I need to send you a new .fla, just replace the code with what I&#8217;ve done. I put it up here:</p>
<p><a href="http://souled.newgrounds.com/news/post/85482" rel="nofollow">http://souled.newgrounds.com/news/post/85482</a></p>
<p>I&#8217;ve fixed the panning and the other problem, however it does now have a button across the entire stage, so it would look better with a custom mouse. :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: styxtwo</title>
		<link>http://www.emanueleferonato.com/2008/02/22/from-zero-to-bombuzal-step-2/#comment-86801</link>
		<dc:creator>styxtwo</dc:creator>
		<pubDate>Sat, 23 Feb 2008 16:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/02/23/from-zero-to-bombuzal-step-2/#comment-86801</guid>
		<description>an _x bigger then *</description>
		<content:encoded><![CDATA[<p>an _x bigger then *</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.009 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-10 22:23:07 -->
