Godot -Rückschlag
func knockback(enemy):
if enemy.position.x > position.x:
vel.x = -10
if enemy.position.x < position.x:
vel.x = 10
Adam the First
func knockback(enemy):
if enemy.position.x > position.x:
vel.x = -10
if enemy.position.x < position.x:
vel.x = 10