- Home /
How would i write a script to add a Particle system to an exhaustust
Hey Guys!!. I'm kinda stumped atm... How would i add a particle effect... (say flames) Out the exhaust of a high speed car. But for the FX to only happen when the car is on... This is confusing me but maybe someone here knows how to achieve this. Thanks.
Answer by Berenger · Jun 04, 2012 at 06:03 PM
You can find a cool flame particle system in the asset store. It's the only free shuriken package, from unity.
As for when to emit, you can stop it when the player stop pressing the accel button.
Thanks for this. I have a fire Emitter and it looks great. But i dont know how i would add a function to make it emit on accel button..
One way would be to have a float (let's call it counter) that you decrease of Time.deltaTime every frames. When the player press the accel button (up, joypad something etc) you reset counter at 1.0 or 2.0. Then, if counter is
okay.. Will have a fiddle around. Thank you mate appreciate your time.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Particle floating in air 1 Answer
How do I use emissionRate in scripting? 1 Answer
how to have bullets produce particles? 2 Answers