<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Health Bar (script)]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=732</link>
		<description><![CDATA[The most recent posts in Health Bar (script).]]></description>
		<lastBuildDate>Sun, 18 Aug 2013 00:20:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Health Bar (script)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4647#p4647</link>
			<description><![CDATA[<div class="quotebox"><cite>anael wrote:</cite><blockquote><p>setAnimationSpeed controls at what speed the animation is played,<br />so if you use setCurrentFrame to manually set the frame of the animation<br />the animation speed is useless (you don&#039;t want the animation to be played as you control it yourself).</p></blockquote></div><p>ahh!! hehe</p><p>I initially had trouble also because I tried to use a while loop in the update function instead of an if conditional statement (forgot the update function automatically loops the if function in a way). doh! hehe</p><p>Thank you anael. I wish these forums were more alive. It seems you are the main person who responds to things. And while that is good, I know it can be a lot for one person. </p><p>I just found out how to get my sketchup models into blender intact and into Maratis. Now I have to get the light-mapping down for Blender, and I can set up a few more Demo levels so that people can see the possibilities of Maratis.&nbsp; </p><p>Thanks again.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Sun, 18 Aug 2013 00:20:57 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4647#p4647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Health Bar (script)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4646#p4646</link>
			<description><![CDATA[<p>setAnimationSpeed controls at what speed the animation is played,<br />so if you use setCurrentFrame to manually set the frame of the animation<br />the animation speed is useless (you don&#039;t want the animation to be played as you control it yourself).</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 17 Aug 2013 21:12:21 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4646#p4646</guid>
		</item>
		<item>
			<title><![CDATA[Health Bar (script)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4645#p4645</link>
			<description><![CDATA[<p>Finally got this Health Bar script finished and neat:</p><p>box = getObject(&quot;box&quot;)<br />ground = getObject(&quot;ground&quot;)<br />bar = getObject(&quot;bar&quot;)</p><p>lastFrame=60<br />firstFrame=3</p><p>function onSceneUpdate()<br />&nbsp; &nbsp; setCurrentFrame(bar,lastFrame)<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if isCollisionBetween(box,ground) then<br />&nbsp; &nbsp; &nbsp; &nbsp; lastFrame = lastFrame - 1<br />&nbsp; &nbsp; end<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if lastFrame &lt;= firstFrame then<br />&nbsp; &nbsp; &nbsp; &nbsp; lastFrame = firstFrame<br />&nbsp; &nbsp; end<br />end</p><br /><p>Wondering, however, how I would get the setAnimationSpeed() function to work with this. I can&#039;t quite place it. I could use a little help.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Sat, 17 Aug 2013 19:44:56 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4645#p4645</guid>
		</item>
	</channel>
</rss>
