Signal from spawn area only registers once

Godot Version

4.2.2

Question

Hello! I’ve still pretty new to Godot and I guess coding in general, and have been banging my head against a wall trying to get this wave/level system to work. I’ve been experimenting, trying to add onto some tutorials I’ve watched and would like a system where the number of enemies per wave goes up exponentially that essentially scales itself, and can use the current wave number to introduce new abilities, etc. I have an enemy spawn area that is attached to the PathFollow2D, thats spawn rate is set to a timer, and I’ve set up some print statements to try to see if it’s counting the values, and it works on the first enemy kill, and then it seems to break. Any help or guidance would be incredibly appreciated, thank you!


I’m not sure if I get the problem right - are there no more mobs spawning?
Or are mobs spawning, but they don’t seem to work correctly?

Is the first green slime already in the scene from the beginning or is it being spawned?

I feel like it could be the setup of the spawned slimes. Can you show the contents of the other functions in main.gd?

Hi, could you please show us the _ready, the spawn_green_slime and the _on_mob_spawner_timer_timeout functions? You hid the most important part :slight_smile:

Is the problem with the mob_death signal, or is it with the spawning? If it’s mob_death, then can you show us how you connect the signal?