This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi All,

OS: WIndows 10
Godot version:3.1

I am very new to programming and also new to Godot. So I want to ask you to be patient.
So I am following the tutorial "your first game" on the Godot learn page.
I have followed the steps as described in the tutorial several times, but i can not get further then the chapter "moving the player".
I follow the steps like described in the tutorial, the first few times i could strart the app but there was no reaction to my input, de player didnt move.
So after trying some stuff I now get the following error:
"E 0:00:00:0441 Condition ' debugparseerrline >= 0 ' is true. returned: __null
modules/gdscript/gdscripteditor.cpp:321 @ debuggetstacklevel_instance()"
I can not find the answer...

My version of the game can be downloaded from the following link:


in Engine by (29 points)

Your link does not work. Can you just post the player code here? Use the "Code Sample" formatting button above when you paste it.

The message implies you have an error in one line of your code. What "stuff" did you try?

Oh I see, I will post the code.

extends Area2D

export var speed = 400 # How fast the player will move (pixels/sec).
var screen_size # Size of the game window.

func ready():
size = getviewportrect().size

func process(delta):
var velocity = Vector2() # The player's movement vector.
velocity.x += 1
if Input.isactionpressed("uileft"):
velocity.x -= 1
velocity.y += 1
if Input.isactionpressed("ui_up"):
velocity.y -= 1
if velocity.length() > 0:
velocity = velocity.normalized() * speed

position += velocity * delta
position.x = clamp(position.x, 0, screensize.x)
position.y = clamp(position.y, 0, screen

That code is unreadable. Please format it. There's a button above the editor window, it looks like {}

1 Answer

0 votes

I want to thank you for your answer earlier today.
I have tried it again from zero for the sixed time today, this time it worked.

Thank u.

by (29 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 Frequently asked questions and 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 [email protected] with your username.