It says velocity has been redefined but I don't know how to change that

Godot Version

4

Question


i tried a bunch of stuff but nothing has helped. i dont why its saying that when i have used var on any velocity. PLEASE HELP

CharacterBody2D already has velocity, you cannot define it again. Delete your velocity.

move_and_slide() takes no arguments do not give it velocity

2 Likes

Thank you!

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