<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Intro scene]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=531&amp;type=atom"/>
	<updated>2013-01-10T14:07:39Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=531</id>
		<entry>
			<title type="html"><![CDATA[Intro scene]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3319#p3319"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-01-10T14:07:39Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3319#p3319</id>
		</entry>
</feed>
