• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Visual Need help with Football ai physics

T

Tengill

Guest
Hello i would love to get someone to help me with a problem I have.
It’s with dnd.

I’m building an 2d physics football game. (Side view)
I have managed to get the opponent to use force to move towards the ball and push it.
But the problem is that I whant him to only push the ball to the left side of the screen.

How can I make it so that when he gets on the left side of the BALL he stops chasing it and return to he’s side of the screen?
(The right side)
This is driving me mad and I would love if some guru could help me
 
Top