How to run a block with another Node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

I would use the following:

func _ready():
    my_node.node_function()
    my_node.another_node_function()

There are another way? In GMS, for example:

with (node) {
    # The block you want to run, without 'my_node' var
}
:bust_in_silhouette: Reply From: SIsilicon

If you don’t want to call the node functions from a different one directly, then you should consider signals.