defold / defold/defold

Decouple Emitter Duration From Spawn Rate

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

Description

I am frustrated when I cannot simply set a "one shot" emitter (plays once then stops) to spawn a specific number of particles without considering duration. For example, I cannot easily set my spawn rate to (1) and get the behavior of spawning one particle then having emission stop.

I would like to be able to set the play mode to Once, the emitter duration to 1 second, and quickly input a spawn rate of 1, and have the system understand that I only want one particle to be spawned for this one shot effect, regardless of emitter duration.

Currently to get something close to what I want, I have to set the emitter duration to something very small, for example (0.01) seconds, then set my spawn rate to something like 10 or 20, since the ratio of duration to spawn rate is what controls the amount that spawns. With this method, I can get my singular particle, but this workflow of adjusting duration and spawn rate together hoping to get a specific number of particles is just clunky and cumbersome. It would be simpler if spawn rate was the actual number of particles that spawned during a one shot effect regardless of emitter duration.

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.