+1 vote

so basically i have an endless runner 2d where the player faces one enemy, after i kill it i want another enemy to spawn and i dont know how to do this so i was wondering what would be the easiest way to approach this problem, i dont need the code, i just need the basic idea of what i should do

Godot version 3.4.2stable
in Engine by (15 points)

1 Answer

0 votes

You can make the enemy spawn another enemy on death, or before the queue_free() function. If you're going to have exclusively one enemy in the scene this might be the easiest and most optimal way.

by (16 points)
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.