How to convert an array from a group into a Node

Hi, how can i convert an array from a group into a Node?

1 Like

Iā€™d like to help you, but your question does not explain your problem. Please try to give enough information (code, screenshots, etc.) to others so they can understand your issue.

Basically, i want to get the position of a Node from another Scene. I tried to use the function get_tree().get_nodes_in_group() and it returns an array, but i need the position of the Nodes inside the array.

var positions = get_tree().get_nodes_in_group("group").map(func(node:Node2D): return node.global_position)

thank you so much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.