I'm having trouble understanding how to use the get_node function, I've looked around for an hour or so and haven't found anything that has helped so I turned to here.
set_pos(Vector2(32, 176)) #Set starting position
var x = get_pos().x
var y = get_node("Ball").get_pos().y #Set the Paddle's y to follow the ball's y
I'm basically just trying to recreate a pong game and the above code is for the computer's paddle. I'm trying to set it's y value to always be equal to the y value of the ball however I'm having trouble referencing the ball node as I get the error "Node not found: Ball". I'm sure I'm missing something obvious but I can't see it, any help appreciated!