0 votes

I want to know how to position a object to x: 100 and y: 100 but I dont know how, and it says I have errors. Right now I am doing set_position(Vector2(100, 100))
I have tried many things like it and nothing worked. Please help...

in Engine by (12 points)

"it says I have errors" - maybe if you shared what the errors were, we'd be able to help you. What kind of object is it that you're using? The more information you provide, the easier it is to help.

1 Answer

0 votes

you can type:
"object". globalposition.x = 100
"object". global
position.y = 100
or have a Position2D node and set the position of the object to the Position2D position:
"object". globalposition.x = Position2D. globalposition.x
"object". globalposition.y = Position2D. globalposition.y

by (290 points)
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 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 webmaster@godotengine.org with your username.