How to stop Particles when player is idle
Another question I need to be answered is how do I stop my particles from playing if my car (player) is at a standstill? I tried to use the else if (!Input.anyKeyDown) trick but it stopped playing entirely. Could someone help me create a script to play particles when the player is moving (or key down) and stop particles when the player is not moving (when no key down)?
Help would be greatly appreciated once again. Have a good day/night, and peace!
Your answer
![](https://koobas.hobune.stream/wayback/20220613061337im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Force Particle System within an area and hide certain ones through arrays. 0 Answers
Performance question: Is it better to Instantiate particle systems OR use same particle system? 1 Answer
Setting the startLifetime of a Particle System via C#? 2 Answers
Change hierarchy | remove any assets in remote addressable 0 Answers
How to Instantiate decals where particles from particle system hits? 1 Answer