0 votes

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: debug
getstacklevel_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 mouse
sensitivity = 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.rotate
y(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)
Godot version latest
in Engine by (12 points)

Please reformat this with a code block, indenting all lines with four spaces.

1 Answer

0 votes

Doesn't the script editor say anything? From a glance I can see you made more than a few typos...

by (254 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.