setup for ai

This commit is contained in:
Jonas Mucke
2020-04-18 21:17:13 +02:00
parent b75cdf7a76
commit e7d5d9eacc
11 changed files with 345 additions and 94 deletions

View File

@@ -17,7 +17,7 @@ func _on_Hurtbox_area_entered(area):
var Hearts = load("res://Objects/Heart/Heart.tscn")
#index of ysort
var world = get_tree().current_scene.get_child(4)
var world = get_tree().current_scene.get_child(2)
if(randf()<GreenDrop):
var green = GreenRubies.instance()
world.add_child(green)