+1 vote

How do I get access to other kinematicbody2 positions

Such as if i want something to look at the player, how do i get the position of the player

in Engine by (58 points)

1 Answer

0 votes
Best answer

You can access other nodes via the tree, using get_node() or $, or you can use an Area to tell you which Nodes are overlapping it.
Once you get your KinematicBody, just read it's position property.

by (2,572 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.