I have a flamethrower in my game using a particle system. Here’s the video:
https://clipchamp.com/watch/QONwolloHdi
As you can see, the flames will rotate with the player, however I only want it to rotate the spawning of the flames, but the existing flames still rotate. Anyone got any suggestions in how I can solve this? Thanks!
Here’s the script I use if it helps:
public GameObject flameThrower;
private ParticleSystem loopableFlame;
public Player player;
private bool throwing = false;
// Start is called before the first frame update
void Awake()
{
loopableFlame = flameThrower.GetComponent<ParticleSystem>();
loopableFlame.Stop();
}
// Update is called once per frame
void Update()
{
if (Input.GetMouseButton(0))
{
if (!throwing)
{
throwing = true;
loopableFlame.Play();
}
player.canMove = false;
}
else
{
throwing = false;
loopableFlame.Stop();
player.canMove = true;
}
}