set game with velocity 0 in one of the axis

Godot Version

4.2.2

Question

I want to set the game with velocity.x = 0, but i dont know what func i have to use

Can you explain your question more? What do you mean by set the game. If you set velocity, the code you showed

velocity.x=0

should work.
If you want to make it so that velocity is zero when the scene is loaded, put it in the _ready function.

1 Like