func knockback(enemy): if enemy.position.x > position.x: vel.x = -10 if enemy.position.x < position.x: vel.x = 10