<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - TD Levels (with downloads)]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=775&amp;type=atom"/>
	<updated>2013-12-10T08:03:57Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=775</id>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6075#p6075"/>
			<content type="html"><![CDATA[<p>Finally!!!! I have a human character with an idle and walking animation. I didn&#039;t have to code it from scratch because I just used my Customizeable Game Script (one of my topics). The transition doesn&#039;t bother me as much as my other test levels. </p><p>Of course, my animation skills are not good yet. </p><p>(Soldier In St Petersburg)</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-10T08:03:57Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6075#p6075</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6055#p6055"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>ant0n wrote:</cite><blockquote><p>great job!<br />St Petersburg <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p></blockquote></div><p>Hehe thanks. This was a quick model for testing. If I can get textures to import into blender or assimp correctly I could have a better looking town (I think the issue is with sketchup) we will see.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-05T03:23:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6055#p6055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6054#p6054"/>
			<content type="html"><![CDATA[<p>Okay, If only I can figure out how to get these match photo textures into blender correctly. I wonder how assimp treats them?<br /><span class="postimg"><img src="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28913%29.png" alt="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28913%29.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-05T03:19:50Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6054#p6054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6053#p6053"/>
			<content type="html"><![CDATA[<p>great job!<br />St Petersburg <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[ant0n]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1562</uri>
			</author>
			<updated>2013-12-05T02:57:28Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6053#p6053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6052#p6052"/>
			<content type="html"><![CDATA[<p>Just threw the car into St Petersburg:<br /><span class="postimg"><img src="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28912%29.png" alt="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28912%29.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-04T21:44:00Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6052#p6052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6026#p6026"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vegas wrote:</cite><blockquote><p>I just tried your car level, pretty good idea to have a free camera inside <br />the car, that gives a nice layer of immersion <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />That would be interesting to see your level with a more detailed buildings such as <a href="http://www.blendswap.com/blends/view/63110">this</a></p><p>Good work!</p></blockquote></div><p>Thank You Vegas. A city like that should be simple to create in Sketchup. I might just use one from the 3d warehouse to start. </p><p>I do want to work on this level more, just trying to win this fight with Blender. Hehe.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-11-27T17:27:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6026#p6026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6024#p6024"/>
			<content type="html"><![CDATA[<p>I just tried your car level, pretty good idea to have a free camera inside <br />the car, that gives a nice layer of immersion <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />That would be interesting to see your level with a more detailed buildings such as <a href="http://www.blendswap.com/blends/view/63110">this</a></p><p>Good work!</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-11-27T16:03:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6024#p6024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6010#p6010"/>
			<content type="html"><![CDATA[<p>I&#039;m just going ahaead and uploading the car level project file. I uploaded the published version in another post, but this is the project file (in first post).</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-11-24T03:59:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6010#p6010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5579#p5579"/>
			<content type="html"><![CDATA[<p>Okay guys, I almost have the Car Level finished, just want to place a character in the passenger seat and maybe some background music. Perhaps a voice over? we will see.</p><p>I also figured out how to toggle. I just use booleans with a table.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-10-17T16:26:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5579#p5579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5578#p5578"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>ant0n wrote:</cite><blockquote><div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I have been trying to create a script that lets me toggle through characters.</p></blockquote></div><p>I did it for you! ;-)<br />Press TAB to switch between characters.<br /><a href="http://yadi.sk/d/rdl24-1wB2m8E">2_Jules.7zip</a></p></blockquote></div><p>I checked it out for a little, but I still have to look at it (the code). I am going to apply this to my Character Select Level. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-10-17T16:24:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5578#p5578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5557#p5557"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I have been trying to create a script that lets me toggle through characters.</p></blockquote></div><p>I did it for you! ;-)<br />Press TAB to switch between characters.<br /><a href="http://yadi.sk/d/rdl24-1wB2m8E">2_Jules.7zip</a></p>]]></content>
			<author>
				<name><![CDATA[ant0n]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1562</uri>
			</author>
			<updated>2013-10-16T03:26:45Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5557#p5557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5539#p5539"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I have been trying to create a script that lets me toggle through characters. I know I have to use a table, but I want to be able to just add any new character object to the table and be able to toggle it. I haven&#039;t been able to find out how to use for and while loops in maratis without it crashing (guess I don&#039;t understand how the onSceneUpdate function works as it relates to loops.</p></blockquote></div><p>I haven&#039;t tried it yet but chances are you need to use Lua Coroutine&#039;s(Multithreading) OpenGL is single-threaded it can only run one process at a time, same with most things in regards to computers. One of two things is going to happen when dealing with pointers(objects) in this case eather A. The program freezes until the process is complete or B. The program crashes.</p><p>But then again when Mixing C++ and a Scripting Language(Lua) a program operates completely different than when using one or the other. Anyways Coroutine&#039;s ...</p><p><a href="http://lua-users.org/wiki/CoroutinesTutorial">http://lua-users.org/wiki/CoroutinesTutorial</a><br /><a href="http://www.lua.org/pil/9.1.html">http://www.lua.org/pil/9.1.html</a></p>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2013-10-15T07:11:36Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5539#p5539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5538#p5538"/>
			<content type="html"><![CDATA[<p>I have been trying to create a script that lets me toggle through characters. I know I have to use a table, but I want to be able to just add any new character object to the table and be able to toggle it. I haven&#039;t been able to find out how to use for and while loops in maratis without it crashing (guess I don&#039;t understand how the onSceneUpdate function works as it relates to loops.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-10-15T06:48:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5538#p5538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5455#p5455"/>
			<content type="html"><![CDATA[<p>No problem <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-10-11T17:38:24Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5455#p5455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TD Levels (with downloads)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5454#p5454"/>
			<content type="html"><![CDATA[<p>Thanks Vegas. I was able to get it to display each box when moused over (Also changed the names from Entity... to Box...)</p><div class="codebox"><pre><code>alex = getObject(&quot;Alex&quot;)
model = getObject(&quot;Model&quot;)
click = getObject(&quot;Click&quot;)
text = getObject(&quot;Text&quot;)

deactivate(model)

Unprojected = getObject(&quot;Unprojected&quot;)
Camera0 = getObject(&quot;Camera0&quot;)

function Spin(x)
    if isKeyPressed(&quot;D&quot;) then
        rotate(x,{0,0,1},3)
    end
    
    if isKeyPressed(&quot;A&quot;) then
        rotate(x,{0,0,1},-3)
    end
end

function Switch(x,y)
    if isKeyPressed(&quot;RIGHT&quot;) then
        playSound(click)
        deactivate(x)
        activate(y)
    end
    
    if isKeyPressed(&quot;LEFT&quot;) then
        playSound(click)
        deactivate(y)
        activate(x)
    end
end

function onSceneUpdate()

    Spin(model)
    Spin(alex)
    Switch(model,alex)
    
--[[----------------------------------------------------------------------UNPROJECTED POINT]]
    mx = getAxis(&quot;MOUSE_X&quot;)
    my = getAxis(&quot;MOUSE_Y&quot;)    

    V1 = getUnProjectedPoint(Camera0, vec3(mx, my, 0))
    V2 = getUnProjectedPoint(Camera0, vec3(mx, my, 1))

    point, Unprojected = rayHit(V1, V2) -- note that rayHit only detects objects with physics enabled

    if point then
        Xname = getName(Unprojected)
        Xobj = getObject(Xname)
        setText(text,Xname)
        print(Xname)
        
        if Xname == &quot;BoxR&quot; and onKeyDown(&quot;MOUSE_BUTTON1&quot;) then deactivate(Xobj) end
        if Xname == &quot;BoxL&quot; and onKeyDown(&quot;MOUSE_BUTTON1&quot;) then deactivate(Xobj) end
        if Xname == &quot;BoxT&quot; and onKeyDown(&quot;MOUSE_BUTTON1&quot;) then deactivate(Xobj) end
    end

end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-10-11T17:30:06Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5454#p5454</id>
		</entry>
</feed>
