Coding problems

I need help

Godot Version
< 4.2.1>

Question
< if not direction = 0.0:
Problem: Assignment is not allowed inside an expression>

You forgot an equal sign there.

if not direction == 0.0: