0 votes

this is probably a dumb question but i havent seen it anywhere. ive tried position, setposition, setglobalposition, setpos. nothing works

godot 4.0 btw

Godot version 4.0
in Engine by (23 points)

You can use the global_position property of Node2D, which is a Vector2 ie:

func _ready():
    global_position=Vector2(0,0)

1 Answer

+1 vote

set inherit var "velocity" and call moveandslide()

by (32 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 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.