Expected closing ")" after call arguments.

Godot Version

Question

extends Area2D

const Seguimiento = 4000
var Que_personaje_sigo = null

func _on_area2d_entered(body):
	hide() 
	if body.get_name() == "character_body_2d":
		Que_personaje_sigo = "Angelina J"

func _folow():
	if Que_personaje_sigo == "Angelina J":
		velocity = position.direction_to(angelina j.position ) * Seguimiento 
		
		move_and_slide()

This looks suspicious. What exactly are you trying to use there? The space between angelina and j causes the error.

1 Like