<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Open source Flash games/effects/animation downloads</title>
	<atom:link href="http://opensourcefla.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://opensourcefla.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 15 Jun 2008 09:23:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='opensourcefla.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Open source Flash games/effects/animation downloads</title>
		<link>http://opensourcefla.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://opensourcefla.wordpress.com/osd.xml" title="Open source Flash games/effects/animation downloads" />
	<atom:link rel='hub' href='http://opensourcefla.wordpress.com/?pushpress=hub'/>
		<item>
		<title>AI for enemies (OSD &#8211; SC)</title>
		<link>http://opensourcefla.wordpress.com/2008/06/15/ai-for-enemies-osd-sc/</link>
		<comments>http://opensourcefla.wordpress.com/2008/06/15/ai-for-enemies-osd-sc/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 09:22:12 +0000</pubDate>
		<dc:creator>x3ma</dc:creator>
				<category><![CDATA[Flash games]]></category>
		<category><![CDATA[Open source downloads(OSD)]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[enemies]]></category>
		<category><![CDATA[OSD]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://opensourcefla.wordpress.com/?p=10</guid>
		<description><![CDATA[Nifty, handy and simple AI script for enemies to follow you, basic math also used.. OSD and Source code included in post..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=10&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>Here is a nifty code for your enemies, it&#8217;s pretty basic but you judge for yourself&#8230; don&#8217;t mind the Modulo symbol, you can change tht to add or multiply&#8230;</p></blockquote>
<p>If you know your maths this will be a click in the head, you&#8217;ll figure out what it will exactly do, but if you ever need help you can always email <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  (<a href="mailto:sway-emo@hotmail.com">sway-emo@hotmail.com</a>), but nuff said, her&#8217;s the code:</p>
<blockquote><p>onClipEvent (enterFrame) {<br />
 aX = _root.a._x;<br />
 aY = _root.a._y;<br />
 findX = (aX-_x)/(aX%aY-10);<br />
 //change to findX = (aX-_x)/(aX%aY/2) for teleporting or simpler findX = (aX-_x)/(aX%aY-10)<br />
 findY = (aY-_y)/(aY%aX+10);<br />
 setProperty(&#8220;&#8221;, _x, _x+findX);<br />
 setProperty(&#8220;&#8221;, _y, _y+findY);<br />
 if (_x&gt;aX-10) {<br />
  _xscale = -100;<br />
 }<br />
 else if (_x&lt;aX+10) {<br />
  _xscale = 100;<br />
 }<br />
 if (this.mHit(&#8220;Y&#8221;, _root.a/2)) {<br />
  gotoAndStop(1);<br />
 } else {<br />
  gotoAndStop(2);<br />
 }<br />
}<br />
onClipEvent (enterFrame) {<br />
 this.swapDepths(this._y);<br />
}</p></blockquote>
<p>Download link is</p>
<blockquote><p><a title="Download source" href="http://www.sendspace.com/file/uzfrq8" target="_blank">HERE</a></p></blockquote>
<p>And optionally you can add this to your timeline:</p>
<blockquote><p>MovieClip.prototype.mHit = function(w, ww) {<br />
 //what with what<br />
 switch (w) {<br />
 case &#8220;:legs&#8221; :<br />
  if (this.hitTest(ww._x, ww._y+(ww._height-ww._height/2), true)) {<br />
   return true;<br />
  } else {<br />
   return false;<br />
  }<br />
  break;<br />
 case &#8220;Y&#8221; :<br />
  if (this.hitTest(ww._x, ww._y+9.75, true)) {<br />
   return true;<br />
  } else {<br />
   return false;<br />
  }<br />
  break;<br />
 case &#8220;X&#8221; :<br />
  if (this.hitTest(ww._x, ww._y, true)) {<br />
   return true;<br />
  } else {<br />
   return false;<br />
  }<br />
  break;<br />
 case &#8220;:hands&#8221; :<br />
  if (this.hitTest(ww._x+8, ww._y+9.75, true)) {<br />
   return true;<br />
  } else {<br />
   return false;<br />
  }<br />
  break;<br />
 }<br />
};</p></blockquote>
<blockquote><p> </p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/opensourcefla.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/opensourcefla.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/opensourcefla.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/opensourcefla.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/opensourcefla.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=10&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://opensourcefla.wordpress.com/2008/06/15/ai-for-enemies-osd-sc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f2776c0e15b47a1edd48b3a6880007f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">x3ma</media:title>
		</media:content>
	</item>
		<item>
		<title>Basics of A game</title>
		<link>http://opensourcefla.wordpress.com/2008/05/25/basics-of-a-game/</link>
		<comments>http://opensourcefla.wordpress.com/2008/05/25/basics-of-a-game/#comments</comments>
		<pubDate>Sun, 25 May 2008 04:25:36 +0000</pubDate>
		<dc:creator>x3ma</dc:creator>
				<category><![CDATA[FLATutorials]]></category>
		<category><![CDATA[basics of a game]]></category>
		<category><![CDATA[making a game]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://opensourcefla.wordpress.com/?p=3</guid>
		<description><![CDATA[Learn the basics of what a real game needs and learn what they do and what they are needed for...<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=3&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Tutorial</strong></p>
<p>To succeed in creating a game, you will have to learn the basics, here is a directory chart showing how and why these  they are needed in a game:</p>
<p>
******MOVEMENT<br />
<code><br />
_x: Horizintal view of movement(move from side to side), example: _x -= runSpeed/2;<br />
_y: Vertical view of movement(move from up to down), example: _y += gravityForce;<br />
</code><br />
******HITTING<br />
<code><br />
_x: Position of the horizontal area where an instance is placed, example: _x = 350;<br />
_y: Position of vertical area where an instance is placed, example: _y = 275;<br />
hitTest(): Boolean(true/false), Determines if an instance has collided w/Something, example: character = character.hitTest(_root.enemy) ?: hp--: _x = normX;<br />
</code><br />
******MATH<br />
<code><br />
Math.ceil(): Rounds pronumeral/var/number defined to the highest whole number, example: Math.ceil(49);<br />
Math.floor(): Rounds pronumeral/var/number defined to the lowest whole number, example: Math.floor(43);<br />
Radians: An arc of a circle which is equal to the radius, or the angle measured by the arc, example: _rotation = Int(Math.PI/180*90);
</p>
<p></code></p>
<p>List will get updated whenever I Have time&#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/opensourcefla.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/opensourcefla.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/opensourcefla.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/opensourcefla.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/opensourcefla.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=3&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://opensourcefla.wordpress.com/2008/05/25/basics-of-a-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f2776c0e15b47a1edd48b3a6880007f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">x3ma</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple ball physics game</title>
		<link>http://opensourcefla.wordpress.com/2008/05/25/hello-world/</link>
		<comments>http://opensourcefla.wordpress.com/2008/05/25/hello-world/#comments</comments>
		<pubDate>Sun, 25 May 2008 03:54:07 +0000</pubDate>
		<dc:creator>x3ma</dc:creator>
				<category><![CDATA[Flash games]]></category>
		<category><![CDATA[Open source downloads(OSD)]]></category>
		<category><![CDATA[ball games]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[physics]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Flash physics based game, move a ball around avoiding the obstacles(OSD, FLA)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=1&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>OPEN SOURCE(DOWNLOAD&#8211;&gt;)</strong></p>
<p>This was created some few days ago&#8230; it&#8217;s a simple one frame game&#8230; the four levels are in a <em>movieclip container</em>  it&#8217;s open source so if you like games which have gravity, friction and movement, then you can download it:</p>
<blockquote><p><a title="Download file" href="http://www.sendspace.com/file/q5p5uw" target="_blank">HERE</a></p></blockquote>
<p>(PUBLISHING PROJECTS IS ONLY ALLOWED BY AUTHOR)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/opensourcefla.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/opensourcefla.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/opensourcefla.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/opensourcefla.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/opensourcefla.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opensourcefla.wordpress.com&amp;blog=3811349&amp;post=1&amp;subd=opensourcefla&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://opensourcefla.wordpress.com/2008/05/25/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7f2776c0e15b47a1edd48b3a6880007f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">x3ma</media:title>
		</media:content>
	</item>
	</channel>
</rss>
