this is the error
0:00:02:0518 - Condition ' debugparseerrline >= 0 ' is true. returned: __null
Type:Error
Description:
Time: 0:00:02:0518
C Error: Condition ' debugparseerrline >= 0 ' is true. returned: __null
C Source: modules/gdscript/gdscripteditor.cpp:287
C Function: debuggetstacklevel_instance
and this is my script
extends KinematicBody
export var speed = 10
export var acceleration = 5
export var gravity = 0.98
export var jumppower = 30
export var mousesensitivity = 0.3
onready var head =$Head
onready var camera =$Head/Camera
var velocity = Vector3()
var cameraxroatation = 0
func input(event):
if event is InputEventMouseMotion:
head.rotatey(deg2rad(-event.relative.x * mouse_sensitivity))
var x_delta = relative.y * mouse_sensitivity
if camera_x_rotation + x_delta > -90 and camera_x_rotation + x_delta < 90:
camera.rotate.x(deg2rad(-event.relative.y * x_delta))
camera_x_rotation += x_delta
func physicsprocess(delta):
var headbasis = head.getglobal_transform().basis
var direction = Vector3( )
if Input. is_action_just_pressed("move_forward"):
direction -= head_basis.z
elif input. is_action_just_pressed("move_backward"):
direction += head_basis.z
if imput. is_action_just_pressed("move_left"):
direction -= head_basis.X
elif input.is_action_just_pressed("move_right"):
direction += head_basis.X
direction = dirextion.normalized()
velocity = velocity.linear_interpolate(direction * speed,acceleration * delta)
velocity = move_and_slide(velocity)