Player dont move

Godot Version

4.2

Question

I create 2 components for the player: VelocityComponent and PlayerInputComponent, the idea is that the input component every second creates a direction for movement, and then in the exported from the scene velocity component loads the data. The character itself has a state machine from the GodotUtilities add-on (by FireBelley) and the whole script is run through it, but in practice the character just doesn’t move. In the console output Velocity, Direction and all works well, even Velocity in the player changes, but he still does not move, help please.



I solved the problem, I forgot to specify the MoveAndSlide function in the Move function of VelocityComponent. The solution to the problem was easier than I thought :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.