Skip to content

Instantly share code, notes, and snippets.

Embed
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")
add_child(bat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.