Hello,
I’m making 2D pirate ship game and having some trouble with particle system. This is how it looks like when moving right now.
I would like the particle system to emit less particles when ship is just starting to move and when it slowly stops. So emission rate is not constant all te time the ship is moving.
I’m using this script:
private ParticleSystem trail;
void Start ()
{
trail = GetComponent<ParticleSystem>();
}
void Update ()
{
if(Input.GetKey(KeyCode.UpArrow))
{
trail.Play();
}
else
{
trail.Stop();
}
}
}
As you can see particle system is only played when i hold UpArrow key. I’m also curious if it’s possible to emit particles while the ship is still moving and stopping slowly after i already released the key. Is there any method or smthg that says that this particle system will play simply when the object it’s attached to is moving?
Thank you very much for answers!