<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Sound bug]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=61&amp;type=atom"/>
	<updated>2011-03-08T14:22:17Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=61</id>
		<entry>
			<title type="html"><![CDATA[Re: Sound bug]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=200#p200"/>
			<content type="html"><![CDATA[<p>That&#039;s working perfect, thanks <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-03-08T14:22:17Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=200#p200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sound bug]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=198#p198"/>
			<content type="html"><![CDATA[<p>The collision test is returning true when there is a collision, so since you objects are in collision you send a &quot;playSound&quot; order and the sound play from the beginning.</p><p>In script, you should do something like :</p><br /><br /><br /><p>collision = 0</p><p>function onSceneUpdate()</p><p>&nbsp; &nbsp; if isCollisionBetween(A, B) then<br />&nbsp; &nbsp; &nbsp; &nbsp; if collision == 0 then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playSound(sound)<br />&nbsp; &nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp; &nbsp; &nbsp; collision = 1<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; collision = 0<br />&nbsp; &nbsp; end</p><p>end</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-03-08T06:28:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=198#p198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sound bug]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=192#p192"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>I have a problem with sounds, for example, i want to play a sound when theres a collision between objects.<br />All is working perfect except on collision, it looks like the sound is playing 50 times at once, resulting in a crazy noise.<br />I havn&#039;t found a script or option in the editor to make the sound only play 1 time so i guess its a bug ?</p><p>if not i&#039;m sorry !</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-03-07T06:29:48Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=192#p192</id>
		</entry>
</feed>
