<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Maratis3D - C++]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=970&amp;type=atom"/>
	<updated>2014-03-30T13:21:17Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=970</id>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6670#p6670"/>
			<content type="html"><![CDATA[<p>If you are trying to add a force to the cube, the code should be:</p><div class="codebox"><pre><code>addCentralForce(Cube,{8,0,0},&quot;local&quot;)</code></pre></div><p>Also, it is best to name objects in the Editor also:</p><div class="codebox"><pre><code>cube = getObject(&quot;Cube&quot;)</code></pre></div><p>Then your code would be:<br /></p><div class="codebox"><pre><code>addCentralForce(cube,{8,0,0},&quot;local&quot;)</code></pre></div><p>And you would be adding a force to the &quot;cube&quot; variable, which is getting the object named &quot;Cube&quot; in the editor.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-30T13:21:17Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6670#p6670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6655#p6655"/>
			<content type="html"><![CDATA[<p>Also, I&#039;m trying to apply this to a cube, I see no errors to pop up from anywhere but nothing happens when I run the game.</p><p>--get stuff<br />Cube = getObject(&quot;Entity0&quot;)</p><p>function onSceneUpdate()<br />&nbsp; &nbsp; if isKeyPressed(&quot;W&quot;) then<br />&nbsp; &nbsp; &nbsp; &nbsp; addCentralForce(Player, {8, 0, 0}, &quot;local&quot;)<br />&nbsp; &nbsp; end</p><p>end</p><br /><p>My first shot at Lua ...lol<br />Also when I exit maratis and I try to open a project and then load a level a first it seems all right but when I try to publish it (File-&gt;Publish Project) it says that I need to open a project first, but I have.<br />(Nevermind, fixed the publish thingy, but still wondering about the script I guess im going to sleep on it.)<br />Solved the code (feel so dumb) I left&nbsp; typed Player instead of Entity in addCentralForce oh wells.<br />It would have been nice to see a message when you try to access something that isn&#039;t on your scene.</p>]]></content>
			<author>
				<name><![CDATA[maximalista]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2781</uri>
			</author>
			<updated>2014-03-27T23:47:04Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6655#p6655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6654#p6654"/>
			<content type="html"><![CDATA[<p>Hm... Is it possible to build Maratis only with VS2012 and do everything from there ?</p>]]></content>
			<author>
				<name><![CDATA[maximalista]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2781</uri>
			</author>
			<updated>2014-03-27T23:29:50Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6654#p6654</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6653#p6653"/>
			<content type="html"><![CDATA[<p>By the way, I wish I knew C++ better. I would love to add features to the engine itself (which you could do, since you know C++), and you can make game plugins and such. When I get a chance I will finish learning C++.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-27T23:23:57Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6653#p6653</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6652#p6652"/>
			<content type="html"><![CDATA[<p>I think I will give Lua a shot after all.</p>]]></content>
			<author>
				<name><![CDATA[maximalista]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2781</uri>
			</author>
			<updated>2014-03-27T23:16:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6652#p6652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6651#p6651"/>
			<content type="html"><![CDATA[<p>I am comming from another angle myself. I can&#039;t stand the syntax of C++, but after thorough investigation into learning C++, I see the power of it, and why it was designed the way it was. </p><p>I like Python and Lua also, and I am really liking the flexibility of LUA. I liike the syntax of LUA more than Python because with Python you have to indent correctly or else you will get errors. Not the case with lua. A statement is ended with the word &quot;end.&quot;</p><p>I have a few tutorials on here about about programming in LUA.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-27T22:55:10Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6651#p6651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6650#p6650"/>
			<content type="html"><![CDATA[<p>Hi,</p><p>like ulbex said, you can code in c++, follow the tutorial from the first link,<br />of course, you need a compiler installed on your system to compile the c++ code into a dynamic library.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-27T22:00:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6650#p6650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6648#p6648"/>
			<content type="html"><![CDATA[<p>you don&#039;t know what you&#039;re missing but okay...</p>]]></content>
			<author>
				<name><![CDATA[ulbex]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2754</uri>
			</author>
			<updated>2014-03-27T20:39:24Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6648#p6648</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6647#p6647"/>
			<content type="html"><![CDATA[<p>This seems as too much toying around for me. I guess I&#039;m going back to the infinite loop of looking for a suitable engine.<br />What a shame, I really wanted to try something with this engine, unfortunately I won&#039;t be touching it again until C++ arrives(IF ti does).</p><p>I just can&#039;t stand Lua.</p>]]></content>
			<author>
				<name><![CDATA[maximalista]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2781</uri>
			</author>
			<updated>2014-03-27T20:37:28Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6647#p6647</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6646#p6646"/>
			<content type="html"><![CDATA[<p>right now you have to compile all your c++ code in a game.dll , you can check those tutorials<br /><a href="http://www.maratis3d.org/?p=500">http://www.maratis3d.org/?p=500</a></p><p>i would recommend sticking to lua for multiplatform compatibility: <br />you wouldn&#039;t have to recompile everything for windows/osx/android etc , and recompiling lua scripts is very fast<br />( very nice when you&#039;re designing a game )</p><p>despite it&#039;s ugly syntax , lua is apparently quite powerful <br />you can include multiple files via dofile command ( just like any other language )<br />and make classes<br /><a href="http://wiki.maratis3d.org/index.php?title=Object_Oriented_Programming_in_Maratis">http://wiki.maratis3d.org/index.php?tit &#133; in_Maratis</a></p><p>it&#039;s a good &quot; game design oriented &quot; language</p>]]></content>
			<author>
				<name><![CDATA[ulbex]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2754</uri>
			</author>
			<updated>2014-03-27T20:28:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6646#p6646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Maratis3D - C++]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6645#p6645"/>
			<content type="html"><![CDATA[<p>Can I program in C++ without any additional stuff. I mean just create a .cpp file in the &quot;Scripts&quot; Folder and start writing code.<br />I don&#039;t like LUA(blah).<br />Why aren&#039;t there any tutorials, at least I can&#039;t find them it seems.<br />..help ?</p>]]></content>
			<author>
				<name><![CDATA[maximalista]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2781</uri>
			</author>
			<updated>2014-03-27T19:34:22Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6645#p6645</id>
		</entry>
</feed>
