瀏覽代碼

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

Björn Ritzl 6 年之前
父節點
當前提交
5ac216dda0
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      docs/en/manuals/particlefx.md
  2. 3 0
      docs/en/manuals/sound.md

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

@@ -223,4 +223,7 @@ particlefx.play("#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.

+ 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})
 ```
 
+::: 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.
 
 ## Stopping the sound