<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - How change level?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=383</link>
		<description><![CDATA[The most recent posts in How change level?.]]></description>
		<lastBuildDate>Sun, 08 Jul 2012 18:42:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[How change level?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2125#p2125</link>
			<description><![CDATA[<p>Hi, How change level?<br />I write:<br /></p><div class="codebox"><pre><code>Text0 = getObject(&quot;Text0&quot;)
Entity1 = getObject(&quot;Entity1&quot;)

t1 = 0
startTimer1 = 0 -- timer off by default
timerInterval1 = 360 -- timer interval : here 4 seconds
timerLoop1 = 0 -- if you want the timer to loop, set timerLoop = 1

t2 = 0
startTimer2 = 0 -- timer off by default
timerInterval2 = 10 -- timer interval : here 4 seconds
timerLoop2 = 0 -- if you want the timer to loop, set timerLoop = 1

function onSceneUpdate()
setRotation(Text0, {180, 0, t1})
setRotation(Entity1, {0, 0, -t1})
    if startTimer1 == 1  then
        if t == timerInterval1 then
                t = 0
                if timerLoop1 == 0 then
                    startTimer1 = 0
                end
        end
    end
    if startTimer1 == 1  then
        t1 = t1+1
    end

setTextColor(Text0, {1, t2/10, t2/20, 1})
    if startTimer2 == 1  then
        if t2 == timerInterval2 then
                t2 = 0
                if timerLoop2 == 0 then
                    startTimer2 = 0
                end
        end
    end
    if startTimer2 == 1  then
        t2 = t2+1
    end

    startTimer1 = 1
    startTimer2 = 1

if isKeyPressed(&quot;ENTER&quot;) then
        loadLevel(&quot;levels/2.level&quot;)
    end
    
end</code></pre></div><p>and get an error:<br /></p><div class="codebox"><pre><code>nww@nww:~/maratiscar$ ./MaratisPlayer maratiscar.mproj
GL_VERSION : 3.3.0 NVIDIA 295.40
Ошибка сегментирования (core dumped)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nww100)]]></author>
			<pubDate>Sun, 08 Jul 2012 18:42:56 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2125#p2125</guid>
		</item>
	</channel>
</rss>
