<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Speedometer on another scene]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=459</link>
		<description><![CDATA[The most recent posts in Speedometer on another scene.]]></description>
		<lastBuildDate>Fri, 19 Oct 2012 08:26:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Speedometer on another scene]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2768#p2768</link>
			<description><![CDATA[<p>Thanks <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Almighty Laxz)]]></author>
			<pubDate>Fri, 19 Oct 2012 08:26:00 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2768#p2768</guid>
		</item>
		<item>
			<title><![CDATA[Re: Speedometer on another scene]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2767#p2767</link>
			<description><![CDATA[<p>Hi,</p><p>Maratis can only run one script at a time, from the current scene, for you the &quot;CarGame&quot; scene I think.</p><p>Just access directly your gui text from the main scene :</p><p>GuiScene = getScene(&quot;GuiScene&quot;)<br />GuiText = getObject(GuiScene, &quot;Text2&quot;)</p><p>and in the update :</p><p>setText(GuiText, string.format(&quot;%.1f&quot;, speed))</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 19 Oct 2012 07:23:32 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2767#p2767</guid>
		</item>
		<item>
			<title><![CDATA[Speedometer on another scene]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2763#p2763</link>
			<description><![CDATA[<p>Hi,<br />I haven&#039;t worked on the car game in a while so I thought I would get back to it.<br />So I&#039;ve been trying to add a speedometer to my GUI scene. I have got a speedometer in my game scene which works, but I would prefer if it was stuck to the camera on the GUI scene. So far for my GUI scene i&#039;ve got:<br /></p><div class="quotebox"><blockquote><p>CarGame = getScene(&quot;CarGame&quot;)<br />Text2 = getObject(&quot;Text2&quot;)<br />Text0 = getObject(CarGame, &quot;Text0&quot;)<br />function onSceneUpdate()<br />speedometer = getText(CarGame, &quot;Text0&quot;)<br />setText(Text0, speedometer)<br />end</p></blockquote></div><p>And on my game scene i&#039;ve got:<br /></p><div class="quotebox"><blockquote><p>setText(Text0, string.format(&quot;%.1f&quot;, speed))</p></blockquote></div><p>The speed variable is included in the physics test demo already.<br />I feel like i&#039;m missing something obvious here, but could anyone please help?</p>]]></description>
			<author><![CDATA[dummy@example.com (Almighty Laxz)]]></author>
			<pubDate>Thu, 18 Oct 2012 21:31:07 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2763#p2763</guid>
		</item>
	</channel>
</rss>
