Godot 4.2
Question
So I am getting this error saying “assignments aren’t allowed in expressions” I have this script
@onready var ap = $Animations
Var direction = Input.getaxis(‘ui_left’,‘ui_right’)
Move and slide()
updateanimations (direction)
func updateanimations (direction):
If is_on_floor:
If direction ==0
ap.play (‘idel’)
else:
ap.play (‘run’)
else:. ‘’’
If velocity.y =< 0: these are the
ap.play (‘jump’) lines that are causing
the error
‘’’