blob: 6056176aa81d2e50c0d16b15b6c416f8ff19ac60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
extends Node
@export var mob: PackedScene
@export var mob_spawn_location: PathFollow2D
func _on_spawn_timer_timeout() -> void:
var e = mob.instantiate()
mob_spawn_location.progress_ratio = randf()
e.position = mob_spawn_location.position
add_child(e)
|