<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - How change level?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=383&amp;type=atom"/>
	<updated>2012-07-08T18:42:56Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=383</id>
		<entry>
			<title type="html"><![CDATA[How change level?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2125#p2125"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nww100]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1015</uri>
			</author>
			<updated>2012-07-08T18:42:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2125#p2125</id>
		</entry>
</feed>
