thanks for the tip, i handdle it
func level_1_wave_1(instance):
for i in range(instance):
do instance stuff
and call this function from another script
func _process(delta):
if can_level_1_wave_1_go == true:
if get_tree().get_nodes_in_group("enemy_1").size() < 10:
wave_script_call.level_1_wave_1(1)
level_1_wave_1_counter += 1
if level_1_wave_1_counter == 20:
can_level_1_wave_1_go = false
it works fine but at the same time it scares me. Because i have around 60 level planned in my mind, and every lvl have at least 3 wave of enemy attack, some time more. and i need the organizethis wall of code, just thinking about it give me a headache. just think about it, what if i need the edit whole wave number etc. :# =) :s