ai code for c'#
Im workind on a pong game for a project tryin to add my own twist and stuff but the ai stuff is catching me out hard so i kinda stuck and need help
11 Replies
You're gonna have to give actual details if you want help. There's no code, no explanation of what issues you're encountering, or really anything to work with here.
mb im new to this
one sec
this is the code bbut in the unity my ai paddle goes weird like when i start the game and move the ball towards it it just goes to the middle instead of tracking the ball then tracks the ball when the ball is moving away.and second when the ball moves away from it jus tfully goes until it reaches the middle barrier says thier in the middle then when the ball is coming back it just zooms back to the back idk how to explain but i could show on call
the ai is the left
not getting in vc
np
do u need more info
may be better off asking in $unity
but for starters you should probably add some unity debug statements to your code and validate that your logic is working the way you expect it to
wym
im kinda new to this stuff im a beginner