defold / defold/defold

Hidden Looping Emitters Stop One Shot Particle Emitters From Playing

Open
#8,646 0 comments 0 reactions 0 assignees View on GitHub
bug engine particlefx
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

Having an emitter in your particle fx that has the play mode set to loop causes emitters in the same particle fx with the play mode set to once to stop playing indefinitely. This issue is particularly frustrating when you hide the looping emitter to isolate and work on the one shot because even when the looping emitter is hidden, it keeps the one shot emitter from playing.

Create a new particle FX
1. Add an emitter to the particle fx of type Circle
2. Set the emitter play mode to once
3. Set the Initial Green and Initial Blue to 0 so your one shot particles are Red
4. Add another emitter to the particle fx of type Circle
5. Set the emitter play mode to Loop
6. Press spacebar to play the fx. You should see your looping fx playing but after the first time it fires, you will not see your one shot effect restart itself.
7. Right click on your one shot emitter and select Hide Unselected Objects. You will see that your one shot emitter still wont play.

Defold Version 1.6.3
Platforms: Windows
Device: PC

There is no workaround for this, it just doesn't work.

![Screenshot 2024-03-07 181812](https://github.com/defold/defold/assets/81985690/c441ef25-3830-4c2f-b4d1-8b9971ca05e7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.