2
0
Эх сурвалжийг харах

Added note that sounds and pfx will continue to play even if go is deleted

Björn Ritzl 6 жил өмнө
parent
commit
5ac216dda0

+ 3 - 0
docs/en/manuals/particlefx.md

@@ -223,4 +223,7 @@ particlefx.play("#particles")
 particlefx.stop("#particles")
 particlefx.stop("#particles")
 ```
 ```
 
 
+::: sidenote
+A particle effect will continue to emit particles even if the game object the particle effect component belonged to is deleted.
+:::
 See the [Particle FX reference documentation](/ref/particlefx) for more information.
 See the [Particle FX reference documentation](/ref/particlefx) for more information.

+ 3 - 0
docs/en/manuals/sound.md

@@ -43,6 +43,9 @@ When you have a sound component set up properly, you can cause it to play its so
 msg.post("go#sound", "play_sound", {delay = 1, gain = 0.5})
 msg.post("go#sound", "play_sound", {delay = 1, gain = 0.5})
 ```
 ```
 
 
+::: sidenote
+A sound will continue to play even if the game object the sound component belonged to is deleted. You can send a ["stop_sound"](https://www.defold.com/ref/sound/#play_sound) message to stop the sound (see below).
+:::
 Each message sent to a component will cause it to play another instance of the sound, until the available sound buffer is full and the engine will print errors in the console. It is advised that you implement some sort of gating and sound grouping mechanism.
 Each message sent to a component will cause it to play another instance of the sound, until the available sound buffer is full and the engine will print errors in the console. It is advised that you implement some sort of gating and sound grouping mechanism.
 
 
 ## Stopping the sound
 ## Stopping the sound