<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Health Bar (script)]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=732&amp;type=atom"/>
	<updated>2013-08-18T00:20:57Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=732</id>
		<entry>
			<title type="html"><![CDATA[Re: Health Bar (script)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4647#p4647"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-08-18T00:20:57Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4647#p4647</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Health Bar (script)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4646#p4646"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-17T21:12:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4646#p4646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Health Bar (script)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4645#p4645"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-08-17T19:44:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4645#p4645</id>
		</entry>
</feed>
