When in a YSort node, if I have
func _input(event):
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT and event.pressed:
print("click at: ", event.position)
var enemyNode = load("res://Enemy.tscn").instance()
enemyNode.position = event.position
add_child(enemyNode)
I don't see the enemyNode. When I have the enemyNode position itself from enemyNode:_ready(), it does show up. Why doesn't it appear? is a position special when adding to YSort?