Pong AI

DupDev

  • Posts: 3
Hey guys.
I am currently trying to get a Pong AI working but I am struggling with it for 3 hours.
So what my aim is:
When the ball moves on the screen, the AI should follow the ball movements with a certain delay (depending on the difficulty selected). So when the Y-position of the AI is greater than the Y-position of the ball, the AI should move upwards etc.

I got the AI to move one way but then being stuck at that point. I don´t know what I should do now.

Greetz an thanks for your help.
DupDev

(Sorry for some english problems; I´m form Germany ;))

dripple

  • Posts: 747
Na endlich. Ich dachte schon ich bin der einzige Deutsche der hier noch geblieben ist :)

Welcome to Stencyl and to the boards.

Just to ask: "bally" is updated properly?
(Never used the number-events, I usually place the code as IF constructs into an [always] wrapper, it's easier to read and debug)
Sure, my games won't get better with all the new features of Stencyl.
But I do have more fun creating bad ones.


MayazCastle Keeper

DupDev

  • Posts: 3
Ja hallöchen :D Hatte schon angst ich bin hier alleine.

I had it working 5 minutes after posting the question... So thanks for the help.

Greetz