<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Jumping]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=75&amp;type=atom"/>
	<updated>2011-10-20T11:34:14Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=75</id>
		<entry>
			<title type="html"><![CDATA[Re: Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=747#p747"/>
			<content type="html"><![CDATA[<p>Just joined the forum.. Because I want to learn about scripting... Can someone please give me useful suggestions about it please?<br /><a href="http://rain-chains.net/">rain chains</a></p>]]></content>
			<author>
				<name><![CDATA[Rattiee]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=301</uri>
			</author>
			<updated>2011-10-20T11:34:14Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=747#p747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=341#p341"/>
			<content type="html"><![CDATA[<p><span class="postimg"><img src="http://dl.dropbox.com/u/19970067/MaratisShots/screenshot1.jpg" alt="PunBB bbcode test" /></span></p><p>In YoFrankie example :<br />The box in yellow is the &quot;Feet&quot; box.</p><p>In the script just after function onSceneUpdate() you can see theres is : coll = getNumCollisions(Feet)</p><p>so &quot;coll&quot; is the variable where is stored the number of collision for &quot;Feet&quot;</p><p>To describe the jump script below :</p><p>If &quot;Feet&quot; is colliding with something, then allow jump<br />If &quot;Feet&quot; isnt colliding, it wont jump</p><p>More complete info on feet box, to quote anael :</p><div class="quotebox"><blockquote><p>Feet box :<br />It&#039;s just a logic thing, if you want to know if the player touch the ground it is a simple way to do it. Because if you test if the main box is colliding with the room, it will detect also when colliding with the walls (we don&#039;t want). Because the main box is larger than the feet box, the feet box only touch the ground.</p></blockquote></div><p>Hope it helps</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-05-08T16:13:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=341#p341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=340#p340"/>
			<content type="html"><![CDATA[<p>i am getting some problem to understand this scripts</p>]]></content>
			<author>
				<name><![CDATA[mike brown]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=80</uri>
			</author>
			<updated>2011-05-08T15:43:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=340#p340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=276#p276"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vegas wrote:</cite><blockquote><p>Hello,</p><p>Simply make jump only avaible when Feet is colliding with something, like this :</p><p>&nbsp; &nbsp; -- Jump<br />&nbsp; &nbsp; if isKeyPressed(&quot;SPACE&quot;) then<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;if (coll &gt; 1) then<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;addCentralForce(Player, {0, 0, 15}, &quot;local&quot;)<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;end&nbsp; &nbsp; <br />&nbsp; &nbsp; end</p></blockquote></div><p>Thank you Vegas, now it&#039;s ok!</p>]]></content>
			<author>
				<name><![CDATA[rodolfo]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=63</uri>
			</author>
			<updated>2011-04-16T12:40:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=276#p276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=273#p273"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>Simply make jump only avaible when Feet is colliding with something, like this :</p><p>&nbsp; &nbsp; -- Jump<br />&nbsp; &nbsp; if isKeyPressed(&quot;SPACE&quot;) then<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;if (coll &gt; 1) then<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;addCentralForce(Player, {0, 0, 15}, &quot;local&quot;)<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;end&nbsp; &nbsp; <br />&nbsp; &nbsp; end</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-04-15T23:32:51Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=273#p273</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Jumping]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=272#p272"/>
			<content type="html"><![CDATA[<p>Hello guys, I&#039;m trying to make the sheep of YoFrankie demo jump, but isn&#039;t working.</p><p>&nbsp; &nbsp; if isKeyPressed(&quot;SPACE&quot;) then<br />&nbsp; &nbsp; &nbsp; &nbsp; addCentralForce(Player, {0, 0, 5}, &quot;local&quot;)<br />&nbsp; &nbsp; end</p><p>If I hold the key I got a infinite jump. How I fix that? Thanks!</p>]]></content>
			<author>
				<name><![CDATA[rodolfo]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=63</uri>
			</author>
			<updated>2011-04-15T23:13:27Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=272#p272</id>
		</entry>
</feed>
