Thanks for the feedback and playing my game! The "AI" is just a super basic script (see below)
export var speed = 250
var ball
func _ready():
ball = get_parent().find_node("Ball")
func _physics_process(delta):
move_and_slide(Vector2(0,get_opponent_direction()) * speed)
func get_opponent_direction():
if abs(ball.position.y - position.y) > 25:
if ball.position.y > position.y: return 1
else: return -1
else: return 0
I have a couple things left I want to implement and bug fixes. I also wanted to get the GDFG community critiquing it because I find other game devs tend to have pretty sound advice on things to tweak or add :)
Yes all sounds were from Freesound.org!