<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>2D Platform Question</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-435800/2d-platform-question</link>
		<description>Posts in the discussion thread &quot;2D Platform Question&quot; - Making my character walk on 2D platforms</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 15 Jun 2026 02:14:55 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-435800#post-1357937</guid>
				<title>Re: 2D Platform Question</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-435800/2d-platform-question#post-1357937</link>
				<description></description>
				<pubDate>Tue, 24 Jan 2012 20:01:36 +0000</pubDate>
				<wikidot:authorName>EmpiresBane</wikidot:authorName>				<wikidot:authorUserId>1193823</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I saw your other post where you explained some of your problems. It seems like the issue is that when the player walks downhill, the code decides the character is in the air for a split-second and acts appropriately, then in the next frame, the character has moved down to where it is touching it again. There is a simple fix, but it may cause problems in certain situations.</p> <p>First, make sure that you keep all the states saved for the next update. Most importantly, if the player was on the ground last update, assume that he started on the ground this update. Now, check the axis-aligned rectangles of the platform and character. If the rectangles intersect, and the character was on the ground in the last update, chances are, he is still on the ground. From here, you have two options. The first would be to move the character in the direction they are moving, and then raise or lower them to y-coordinate of the platform at that spot. The other is move the character in the direction of the slope of the platform. This has the benefit of keeping the speed the same no matter what angle it is.</p> <p>After experimenting with it for a bit, you should find some other checks that need to be done, such as when moving from one platform to the next, but this should work fairly well with what you already have.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-435800#post-1357598</guid>
				<title>Re: 2D Platform Question</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-435800/2d-platform-question#post-1357598</link>
				<description></description>
				<pubDate>Tue, 24 Jan 2012 06:38:54 +0000</pubDate>
				<wikidot:authorName>EmpiresBane</wikidot:authorName>				<wikidot:authorUserId>1193823</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do you want the platforms to rotate in-game, or will they be fixed?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-435800#post-1356020</guid>
				<title>2D Platform Question</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-435800/2d-platform-question#post-1356020</link>
				<description></description>
				<pubDate>Sun, 22 Jan 2012 00:00:20 +0000</pubDate>
				<wikidot:authorName>Daniel</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I am currently trying to find the best method for making a character collide with a platform. The method will require the ability to have angled platforms, walking on them, and bouncing off of the bottom of them (hitting the characters head on the bottom of a platform). Currently I am using the SAT (separating axis theorem) and my method of a character actually walking on the top works, but has many flaws (going up works just fine, but going down is very etchy).<br /> List of required methods:<br /> -character can walk on platform (meaning it will play the walking animation, so there must be a bool to check for this)<br /> -platforms can be angled<br /> -there will be gravity and jumping and such<br /> -eventually character will need to be able to collide with walls and the sides of platforms, so I'm pretty sure rectangles are a must<br /> -probably other things to account for, just don't know yet</p> <p>I was wondering if anybody could tell me the best way to do what I am trying to do? I don't care if I have to restart my methodology altogether, I just want this working.</p> <p>Sorry if my thoughts seem all over the place. My mind is fried from trying to get this working, putting all of my methodology into action, only to find that it doesn't work like it is supposed to.</p> <p>If anybody has any examples of something like this (remember, platforms must be able to rotate and such).</p> <p>P.S. This is not necessarily tile based! (I've had people assume that before in my posts)</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>