So I was following a tut on yt and this bit of code won't work
func move(delta):
axis = get_input_axis()
if axis == Vector2.ZERO
pass #apply friction
else:
pass #apply movement
move_and_slide()
-----------------------------------------------------
This is in a 2d world and all that jazz but the main thing that won't work is the
"if axis == Vector2.ZERO" The tut used a long = so I thought it was just a = but twice but I was wrong and it won't work no matter what I do.
Any help is appreciated