12345678910111213141516171819202122 |
- extends Position2D
- # Declare member variables here. Examples:
- # var a = 2
- # var b = "text"
- var loader = load('res://npc.tscn')
- func _ready():
- while true:
- print('add enemy')
- var instancer = loader.instance()
- instancer.global_position = global_position
- add_child(instancer)
- yield(get_tree().create_timer(5.0),"timeout")
- pass # Replace with function body.
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|