$begingroup$

Here’s a screenshot of my venture displaying the error message at line 13:

Screenshot

And right here is the total code:

extends KinematicBody2D

var motion = Vector2();
var up = Vector2(0, -1);
var velocity = 200;
var isAttacking = false;

func _precess(delta):
    
    if Enter.is_action_pressed("ui_right") && isAttacking == false:
         motion.x = velocity;
    $AnimatedSprite.play("run");
    elif Enter.is_action_pressed("ui_up") && isAttacking == false: (ERROR HERE)
         motion.x = velocity;
    $AnimatedSprite.play("walk2");
    elif Enter.is_action_pressed("ui_left"):
        motion.x = -speed;
    $AnimatedSprite.play("walk3");
    elif Enter.is_action_pressed("ui_down"):
        motion.x = -speed;
    $AnimatedSprite.play("stroll");
    else:
        motion.x = 0;
        if isAttacking == false:
            
            $AnimatedSprite.play("parada");
    if Enter.is_action_just_pressed("Assault"):
        $AnimatedSprite.play("Atak");
        isAttacking = true;
    
    
    
    motion = move_and_slide(motion, up * delta);

How do I repair this error?

Lovik on lol is a brand new contributor to this web site. Take care in asking for clarification, commenting, and answering.
Take a look at our Code of Conduct.

$endgroup$

1