I tried to create an idle state by saying "if velocity == 0:", but I get an error saying "Invalid operands 'Vector2' and 'int' for '==' operator".
It seems like it only works if you say "velocity.x" or "velocity.y", but my character moves all around the screen. I'm just trying to figure out how to specify that the general velocity is 0.