this is what I use to spawn them
in my project whenever I hit an enemy all of the enemy sprits gets destroyed. what should I do to fix this?
Develop games in your browser. Powerful, performant & highly capable.
as the title says.