0 votes

So have an instanced enemy scene and I want it to spawn bullets when it gets deleted. My problem is when I delete the enemy instance the bullet instance gets deleted too because it is its children.

How should I spawn the bullets?

Godot version 3.4
in Engine by (17 points)

1 Answer

+1 vote
Best answer

Don't make the bullets the children of the enemy; e.g. make them the parent of the main scene.

by (1,057 points)
selected by

Thank you!
I was able to solve the issue, thanks to your answer :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.