I just started using this engine, and was in the middle of making a player movement script.
var velocity = Vector2(0,0)
const SPEED = 4
const GRAVITY = 0.5
const JUMP = -10
func _physics_process(delta):
if Input.is_action_pressed("right"):
velocity.x = SPEED
if Input.is_action_pressed("left"):
velocity.x = -SPEED
velocity.y = velocity.y + GRAVITY
if Input.is_action_pressed("up"):
velocity.y = JUMP
velocity = move_and_collide(velocity)
velocity.x = lerp(velocity.x,0,0.2)
I was testing out this portion, and kept getting prompt with the error "The argument "delta" is never used in the function physicsprocess." I tried using " _delta" instead, but my game still wont run.