how to make infinite


I want to create enemies as many times as the number of waves and I want this number of waves to last forever. can u help me?

You can have a global integer variable WaveNumber which is incremented every time a wave starts and is used for the number of enemies.

how can i increment it ?

idk maybe like this but how wave number is going to be infinite

You need to set a new value to Wave Number every wave. You can also do it elsewhere.