Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bgegg |
i added child node to spawnPoint node in every 1minutes by timer.
i can not find it in debug menu.
how to view added node?
please help this.
yes,i know i can debug it with script.
extends Spatial
spawn_point.gd
var enemy = load("res://asset/character/enemy.tscn");
var enemy_counter = 1;
onready var timer_node = get_node("Timer");
func _on_Timer_timeout():
enemySpawn();
enemy_counter += 1;
if enemy_counter > 3:
timer_node.stop();
func enemySpawn():
var enemy_instance = enemy.instance();
enemy_instance.set_name("enemy" + str(enemy_counter));
self.add_child(enemy_instance);
print(enemy_instance);