<?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 an object like in MochiAds header</title>
	<atom:link href="http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/</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: Dragonphase</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-1022714</link>
		<dc:creator>Dragonphase</dc:creator>
		<pubDate>Sat, 17 Dec 2011 15:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-1022714</guid>
		<description>Hi Emanuele - I am sure this attempt and tutorial is quite old, but this is possible with only a few lines of codes:

Mouse.hide();
attachMovie(&quot;mousep&quot;,&quot;mousep&quot;,_root.getNextHighestDepth());
attachMovie(&quot;mochithing&quot;,&quot;mochithing&quot;,_root.getNextHighestDepth());
var Delay = .1;

mochithing.onEnterFrame = function () {
	this._x += (mousep._x - this._x) * Delay;
	this._y += (mousep._y - this._y) * Delay;
	this._rotation = Math.atan2(mousep._y-this._y, mousep._x-this._x)*180/Math.PI;
}

Delay is returned slower when the value of it is decremented by 0.01.</description>
		<content:encoded><![CDATA[<p>Hi Emanuele &#8211; I am sure this attempt and tutorial is quite old, but this is possible with only a few lines of codes:</p>
<p>Mouse.hide();<br />
attachMovie(&#8220;mousep&#8221;,&#8221;mousep&#8221;,_root.getNextHighestDepth());<br />
attachMovie(&#8220;mochithing&#8221;,&#8221;mochithing&#8221;,_root.getNextHighestDepth());<br />
var Delay = .1;</p>
<p>mochithing.onEnterFrame = function () {<br />
	this._x += (mousep._x &#8211; this._x) * Delay;<br />
	this._y += (mousep._y &#8211; this._y) * Delay;<br />
	this._rotation = Math.atan2(mousep._y-this._y, mousep._x-this._x)*180/Math.PI;<br />
}</p>
<p>Delay is returned slower when the value of it is decremented by 0.01.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kara</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-413580</link>
		<dc:creator>kara</dc:creator>
		<pubDate>Mon, 23 Mar 2009 21:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-413580</guid>
		<description>I REALLY NEED HELP!
this is exactly what i have been looking for for acouple months now,and i dont know hwo to do it/: ill do anything for the info!,please!</description>
		<content:encoded><![CDATA[<p>I REALLY NEED HELP!<br />
this is exactly what i have been looking for for acouple months now,and i dont know hwo to do it/: ill do anything for the info!,please!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: el nino</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-154385</link>
		<dc:creator>el nino</dc:creator>
		<pubDate>Tue, 06 May 2008 07:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-154385</guid>
		<description>How can you add ease to the rotation?</description>
		<content:encoded><![CDATA[<p>How can you add ease to the rotation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vagroth</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-125358</link>
		<dc:creator>Vagroth</dc:creator>
		<pubDate>Sat, 26 Apr 2008 16:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-125358</guid>
		<description>oh snap i said with not will XD</description>
		<content:encoded><![CDATA[<p>oh snap i said with not will XD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vagroth</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-125355</link>
		<dc:creator>Vagroth</dc:creator>
		<pubDate>Sat, 26 Apr 2008 16:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-125355</guid>
		<description>Is it possible to use this code for a hand, only in a way that the hand cant leave an area, those who have played the Thing Thing flash game series with understand what I mean.</description>
		<content:encoded><![CDATA[<p>Is it possible to use this code for a hand, only in a way that the hand cant leave an area, those who have played the Thing Thing flash game series with understand what I mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EagleVision</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-83695</link>
		<dc:creator>EagleVision</dc:creator>
		<pubDate>Thu, 14 Feb 2008 22:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-83695</guid>
		<description>Yes, the Grow series is great!

Also, make more things like this, its great!</description>
		<content:encoded><![CDATA[<p>Yes, the Grow series is great!</p>
<p>Also, make more things like this, its great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chrispy</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76563</link>
		<dc:creator>Chrispy</dc:creator>
		<pubDate>Mon, 28 Jan 2008 20:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76563</guid>
		<description>Hi, i&#039;m a new visitor, and i wondered if you had any idea of how to make games of the &#039;Grow&#039; series from Eyezmaze. If so, could you make a tutorial about it?</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m a new visitor, and i wondered if you had any idea of how to make games of the &#8216;Grow&#8217; series from Eyezmaze. If so, could you make a tutorial about it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76503</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Mon, 28 Jan 2008 15:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76503</guid>
		<description>Love it. Already used it and am about half way through a new game.  Thanks!</description>
		<content:encoded><![CDATA[<p>Love it. Already used it and am about half way through a new game.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: styxtwo</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76492</link>
		<dc:creator>styxtwo</dc:creator>
		<pubDate>Mon, 28 Jan 2008 14:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76492</guid>
		<description>mindjolt rules :D</description>
		<content:encoded><![CDATA[<p>mindjolt rules :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RJ</title>
		<link>http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76474</link>
		<dc:creator>RJ</dc:creator>
		<pubDate>Mon, 28 Jan 2008 13:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/26/moving-an-object-like-in-mochiads-header/#comment-76474</guid>
		<description>Thanks a lot again</description>
		<content:encoded><![CDATA[<p>Thanks a lot again</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 5/11 queries in 0.053 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 06:21:57 -->
