Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Godot: spawning enemies and sending the path to use for positions
extends Node2D
export (PackedScene) var Bat
func _ready():
for i in range(0,10):
var bat = Bat.instance()
bat.path = $BatPath/PathFollow2D
bat.connect("player_hit", self, "on_player_hit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment