<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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"
		>
	<channel>
		<title>Borne Games Forum &#187; Topic: Slope Rotation - Need Help!!!</title>
		<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help</link>
		<description>Borne Games Forum &#187; Topic: Slope Rotation - Need Help!!!</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 18:46:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://www.bornegames.com/forum/rss/topic/slope-rotation-need-help" rel="self" type="application/rss+xml" />

		<item>
			<title>VideoGuy on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-65837</link>
			<pubDate>Thu, 15 Jul 2010 14:15:41 +0000</pubDate>
			<dc:creator>VideoGuy</dc:creator>
			<guid isPermaLink="false">65837@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Follow protocol, ignore him.
</p>]]></description>
					</item>
		<item>
			<title>wingdemon on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-65833</link>
			<pubDate>Thu, 15 Jul 2010 13:16:33 +0000</pubDate>
			<dc:creator>wingdemon</dc:creator>
			<guid isPermaLink="false">65833@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>okay. spam my ass off. we finally found a spammer <strong>and</strong> a thread bumper.
</p>]]></description>
					</item>
		<item>
			<title>drewblay on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-65828</link>
			<pubDate>Thu, 15 Jul 2010 09:49:42 +0000</pubDate>
			<dc:creator>drewblay</dc:creator>
			<guid isPermaLink="false">65828@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Take a look at this site: free maths games<br />
look at the subjects, like this: Online Order of Operations Games</p>
<p>[VG EDIT] Links destroyed.
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-21437</link>
			<pubDate>Tue, 12 May 2009 22:02:50 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">21437@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Then how did Brad do it?
</p>]]></description>
					</item>
		<item>
			<title>VideoGuy on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-21435</link>
			<pubDate>Tue, 12 May 2009 21:33:57 +0000</pubDate>
			<dc:creator>VideoGuy</dc:creator>
			<guid isPermaLink="false">21435@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>I'm not sure it's possible, because of some limitation with ATAN.
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-21434</link>
			<pubDate>Tue, 12 May 2009 21:28:06 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">21434@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Do you guys have any idea how to do upside-down slope by any chance?
</p>]]></description>
					</item>
		<item>
			<title>nichaey on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-20137</link>
			<pubDate>Wed, 06 May 2009 02:43:26 +0000</pubDate>
			<dc:creator>nichaey</dc:creator>
			<guid isPermaLink="false">20137@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>XD cute, looking really smooth.
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-20128</link>
			<pubDate>Tue, 05 May 2009 22:12:23 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">20128@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Here it is, then: <a href="http://www.truploader.com/view/493571" rel="nofollow">http://www.truploader.com/view/493571</a></p>
<p>Just so you know, pay no mind to the random character. He doesn't switch directions, and he's not going to be the main character of my game. I was just fooling around when I made him.</p>
<p>Also, I would go over the edge. That's where the glitching really kicks in.
</p>]]></description>
					</item>
		<item>
			<title>Niall on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-20127</link>
			<pubDate>Tue, 05 May 2009 22:02:37 +0000</pubDate>
			<dc:creator>Niall</dc:creator>
			<guid isPermaLink="false">20127@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p><a href="http://filebox.me/" rel="nofollow">http://filebox.me/</a><br />
<a href="http://truploader.com/" rel="nofollow">http://truploader.com/</a></p>
<p>Upload the .swf to one of those sites and link us there.
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help/page/2#post-20126</link>
			<pubDate>Tue, 05 May 2009 20:58:00 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">20126@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Uh... not to be ignorant or anything, but... how would I upload it?
</p>]]></description>
					</item>
		<item>
			<title>nichaey on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-20065</link>
			<pubDate>Tue, 05 May 2009 03:10:28 +0000</pubDate>
			<dc:creator>nichaey</dc:creator>
			<guid isPermaLink="false">20065@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>care to show?
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19975</link>
			<pubDate>Sun, 03 May 2009 20:56:29 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">19975@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Oap. Never mind, I figured it out on my own. Sweet! It's totally perfect now! (Except for a few minor tweaks that need to be made.)
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19897</link>
			<pubDate>Sun, 03 May 2009 00:32:32 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">19897@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>No offense, but you did kind of miss the mark completely. As soon as the points switch which one is higher, the character freezes for a second. So basically, once the slope becomes 0 for a second, that's when it just stops moving, but the friction causes it to move a bit further, changing the slope. Tell me if I'm being too confusing.
</p>]]></description>
					</item>
		<item>
			<title>nichaey on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19895</link>
			<pubDate>Sat, 02 May 2009 23:04:13 +0000</pubDate>
			<dc:creator>nichaey</dc:creator>
			<guid isPermaLink="false">19895@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Are you sure that your ground doesn't curve too tightly? Because if the radius of the curve is close to the height of your character it would look like he was just rotating in place. The only way to fix this would be to 'straighten' out your curves a bit. (sorry if I missed the mark completely; I didn't sleep last night)
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19889</link>
			<pubDate>Sat, 02 May 2009 14:55:25 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">19889@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>OK, that helped too, but now, if I go down a hill, when my slope becomes 0 and I start to go up another hill, my dude sort of stops for a split second. How do I stop this?
</p>]]></description>
					</item>
		<item>
			<title>nichaey on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19888</link>
			<pubDate>Sat, 02 May 2009 14:29:41 +0000</pubDate>
			<dc:creator>nichaey</dc:creator>
			<guid isPermaLink="false">19888@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>by inefficient I mean you are calculating 2 extra things that you could just put as a constant. Your reference to Math.pi, and your extra division.
</p>]]></description>
					</item>
		<item>
			<title>VideoGuy on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19873</link>
			<pubDate>Sat, 02 May 2009 11:48:04 +0000</pubDate>
			<dc:creator>VideoGuy</dc:creator>
			<guid isPermaLink="false">19873@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>That sounds like it would work, although when I tried that, if you go over a hill, it counts as a semi-jump, and you just start walking at the same angle you were originally at, but in mid-air.</p>
<p>So you would need to tweak it a bit more to make it fully functional.</p>
<p>3.14159265358979 seems efficient enough for me within Flash...
</p>]]></description>
					</item>
		<item>
			<title>nichaey on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19860</link>
			<pubDate>Sat, 02 May 2009 06:17:14 +0000</pubDate>
			<dc:creator>nichaey</dc:creator>
			<guid isPermaLink="false">19860@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>you too VG?<br />
Math.pi is horribly inefficient, if you want exactness use 57.2957795.<br />
Your code looks like it would work just fine unless you reorient yourself midair. My engine is on a school computer, but I think I remember how it goes.</p>
<blockquote><p>
ang= char._rotation / 57.3</p>
<p>if (!airborne){<br />
char._x += speed*Math.cos (ang)<br />
char._y += speed*Math.sin (ang)<br />
if (!(char.hitTest(ground))){<br />
airborne=true<br />
xv = speed*Math.cos (ang)<br />
yv = speed*Math.sin(ang)<br />
}<br />
}else if (airborne){<br />
yv += 0.4<br />
char._y += yv<br />
char._x += xv</p>
<p>}</p>
</blockquote>
<p>I also have some code that makes the character stick to one unit below the top of the ground, but thats pretty much the jist of it. </p>
<blockquote><p>
he basically moves either into or above the ground a bit</p>
</blockquote>
<p>sounds like you guy might be a bit off centre, put 0,0  right in between his legs.
</p>]]></description>
					</item>
		<item>
			<title>VideoGuy on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19856</link>
			<pubDate>Sat, 02 May 2009 03:11:01 +0000</pubDate>
			<dc:creator>VideoGuy</dc:creator>
			<guid isPermaLink="false">19856@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>Do you mean you want the character to move in relation to his rotation, instead of the regular _x and _y coordinates?</p>
<blockquote><p>
ang = (char._rotation)*(Math.PI/180);<br />
char._x += yspeed*Math.sin(ang);<br />
char._y += yspeed*Math.cos(ang);<br />
char._x += xspeed*Math.cos(ang);<br />
char._y += xspeed*Math.sin(ang);
</p></blockquote>
<p>That's what I'm using, although it's a bit gitchy and I don't know if it's right.
</p>]]></description>
					</item>
		<item>
			<title>Frozoth on "Slope Rotation - Need Help!!!"</title>
			<link>http://www.bornegames.com/forum/topic/slope-rotation-need-help#post-19855</link>
			<pubDate>Sat, 02 May 2009 02:48:32 +0000</pubDate>
			<dc:creator>Frozoth</dc:creator>
			<guid isPermaLink="false">19855@http://www.bornegames.com/forum/</guid>
			<description><![CDATA[<p>...But I think I might need some more help.</p>
<p>See, when I move my character left and right, he basically moves either into or above the ground a bit, depending on the slope. Could you guys help me with this slope detection?
</p>]]></description>
					</item>

	</channel>
</rss>
