#characterbody2d move and collide function not doing anything

1 messages · Page 1 of 1 (latest)

oak pelican
#

try velocity = move_and_collide(Vector2(5, 5)) and see if it moves at all.

Godot 4 has a built in velocity variable for bodies

#

@fringe saddle

#

Also, since move_direction_x_speed is already a Vector2, I don't think you need to enclose it inside a Vector2() constructor