<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Intro scene]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=531</link>
		<description><![CDATA[The most recent posts in Intro scene.]]></description>
		<lastBuildDate>Thu, 10 Jan 2013 14:07:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Intro scene]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3319#p3319</link>
			<description><![CDATA[<p>I have created an intro scene in my game with a timer that stop the scene and goto to the menu scene...</p><p>maybe it could be usefull to someone <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>--configuration
secondsToWait = 5
nextSceneName = &quot;Menu&quot;

--impl
timer = 0
timerEnding = secondsToWait * 60 --scripting works always at 60 fps
function onSceneUpdate()
    timer = timer+1
    if timer&gt;timerEnding then
        scene = getScene(nextSceneName)
        changeScene(scene)
    end
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (SadWolf)]]></author>
			<pubDate>Thu, 10 Jan 2013 14:07:39 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3319#p3319</guid>
		</item>
	</channel>
</rss>
