<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - How to delete clones?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=925</link>
		<description><![CDATA[The most recent posts in How to delete clones?.]]></description>
		<lastBuildDate>Mon, 10 Feb 2014 15:57:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6407#p6407</link>
			<description><![CDATA[<p>Thank you! When I am finished getting the graphical side of things figured out, I can dig deeper into the code side of things, and these posts will help a lot, thanks!.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 10 Feb 2014 15:57:19 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6407#p6407</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6396#p6396</link>
			<description><![CDATA[<p>oops i made a mistake, you don&#039;t need getObject nor getName to deactivate the clones in cloneList,<br />deactivate(cloneList[number]) is enough,</p><p>getName is to use with <a href="http://wiki.maratis3d.org/index.php?title=SetBehaviorVariable">SetBehaviorVariable</a><br />example, setBehaviorVariable(Camera, 0, &quot;target&quot;, &quot;cloneList[number]&quot;) : won&#039;t work, it&#039;s here <br />you have to getObject/getName</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Mon, 10 Feb 2014 09:47:23 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6396#p6396</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6334#p6334</link>
			<description><![CDATA[<p>Thanks Vegas. I am trying to get the speed bumps out of the way, I might need this functionality in the future. The code I posted on my post called &quot;Code snippets&quot; can clone a bunch of objects (get&#039;s slow when physics are turned on) but I wanted to use them as markers that delete the last clone one a certain number of clones has been created. Once I a decent animated test character I will start making more test levels and code snippets.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Wed, 05 Feb 2014 17:12:32 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6334#p6334</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6301#p6301</link>
			<description><![CDATA[<p>Yep that&#039;s it, well taking the example from the wiki,&nbsp; the very basic usage is :</p><div class="codebox"><pre><code>object = getObject(&quot;object&quot;)
cloneList = {}

function onSceneUpdate()
   
    if onKeyDown(&quot;1&quot;) then
        table.insert(cloneList, #cloneList + 1, getClone(object)) -- create a clone
    end

    if onKeyDown(&quot;2&quot;) then
        toDelete = getObject(getName(cloneList[3])) -- 3 is just for example
        deactivate(toDelete)
    end
   
end</code></pre></div><p>Hope it helps</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Fri, 31 Jan 2014 08:13:53 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6301#p6301</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6300#p6300</link>
			<description><![CDATA[<p>That looks like it would delete the third item in the cloneList table. </p><p>I just found out how to use the table.insert function and the table.remove function. But I don&#039;t know how to use it to do this.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Fri, 31 Jan 2014 03:01:50 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6300#p6300</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6291#p6291</link>
			<description><![CDATA[<p>If i remember correctly you must use something like</p><div class="codebox"><pre><code>toDelete = getObject(getName(cloneList[3])) -- 3 is just for example
deactivate(toDelete)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Thu, 30 Jan 2014 02:43:27 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6291#p6291</guid>
		</item>
		<item>
			<title><![CDATA[How to delete clones?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6289#p6289</link>
			<description><![CDATA[<p>How would I delete clones that have been added to a scene. In my Code snippets post I am able to create them, and I have a counter that can do something once it reaches a number (used it for tracking how many times a key was pressed). </p><p>But when I use the deactivate item on the original object from which the clones were made, maratis crashes. </p><p>How do I delete the clones individually? Would I have to use that clonelist thing from the wiki in some special way?</p><p><a href="http://wiki.maratis3d.org/index.php?title=GetClone">http://wiki.maratis3d.org/index.php?title=GetClone</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Thu, 30 Jan 2014 01:29:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6289#p6289</guid>
		</item>
	</channel>
</rss>
