Hey!
I am a little new to Godot and due to some life stuff I am forced to use Godot 2.1 for the time being,
that being said all the things that I have done research on was for the new version 3.
I am trying to get a basic code for 4 directional character movement and animation playing and I keep getting different errors,
here is the current error I am stuck on:
Parser Error: Identifier not found: Position
code here:
extends Area2D
var direction = Vector2(0,0)
var SPEED = 50
func _ready():
AnimatedSprite.play("Moving")
func _process(delta):
if is_action_pressed("ui_up"):
direction = Vector2 (0,-1)
elif is_action_pressed("ui_down"):
direction = Vector2 (0,1)
elif is_action_pressed("ui_left"):
direction = Vector2 (-1,0)
elif is_action_pressed("ui_right"):
direction = Vector2 (1,0)
Position += SPEED * direction * delta
Thank's for any help in advanced!