Expected "," or ")"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By quadra123
extends KinematicBody2D

export(int) var speed = 80.0

func _physics_process(delta):

var velocity = Vector2.ZERO


if Input.is_action_pressed("ui_right"):
	velocity.x += 1.0
if Input.is_action_pressed("ui_left"):
	velocity.x -= 1.0

if Input.is_action_pressed("ui_down"):
	velocity.y += 1.0

if Input.is_action_pressed("ui_up"):
	velocity.y -= 1.0

velocity = velocity.normalized()

if velocity == Vector2. ZERO:
	$AnimationTree.get("parameters/playback".travel("IDLE")
else
	$AnimationTree.get("parameters/playback".travel("WALK")
	
	$AnimationTree.set("parameters/IDLE/blend_position", velocity)
	
	$AnimationTree.set("parameters/WALK/blend_position", velocity)
	move_and_slide(velocity * speed)

Expected “,” or “)”
If i add “,” or “)”, it just keeps telling me to add it to another line without ending

:bust_in_silhouette: Reply From: rakkarage

$AnimationTree.get("parameters/playback".travel("IDLE") should be $AnimationTree.get("parameters/playback").travel("IDLE") x4