Wassup , I am facing some problem with my 1st Godot Code.. The project is from document from the | Chapter 2. Step by Step - Your First Game| Link : https://goo.gl/8W4VXe |
CODE :
extends Area2D
export (int) var SPEED
var velocity = Vector2()
var screensize
func _ready():
screensize = get_viewport_rect().size
func _process(delta) :
if Input.is_action_pressed("ui_up") :
velocity.x -= 1
if Input.is_action_pressed("ui_down") :
velocity.x += 1
if Input.is_action_pressed("ui_right") :
velocity.x += 1
if Input.is_action_pressed("ui_left") :
velocity.x -= 1
if velocity.length() > 0 :
velocity = velocity.normalized() * SPEED
$AnimatedSprite.play()
else :
$AnimatedSprite.stop()
position += velocity * delta
position.x = clamp(position.x, 0, screensize.x)
position.y = clamp(position.y, 0, screensize.y)
ERROR :
0:00:00:0271 - Condition ' debug_parse_err_line >= 0 ' is true. returned: 0
Type:Error
Description:
Time: 0:00:00:0271
C Error: Condition ' debug_parse_err_line >= 0 ' is true. returned: 0
C Source: modules\gdscript\gdscript_editor.cpp:287
C Function: GDScriptLanguage::debug_get_stack_level_instance
** THANKS.. :) ..

Desperately waiting for the solution..**