Making a bullet disappear when it has been shot/ thrown after a short while.
Hi, I code in GDScript.
I am making a game where you throw nuts at enemies, and if you don't hit the enemy the nut will kind of bounce off walls a little and roll around, but they never end up disappearing that way and you get alot of lag as then never disappear. If anyone can help out, it would be appreciated. I'm thinking after instantiating the bullet/nut, it can start a timer and then delete the nut after that timer runs out.