My problem is probably quite simple for you guys, I'm just new with programming so yeah.
I want to have a circle on the center of the screen, then I want that when a player gets close to it, he'll be pushed away in relation to the direction he came from,
Here's a little drawing I made to be abit more clear
The red circles are the player coming from different directions, the green circle is the obstacle. The arrows show what direction the player should be pushed to the player moves only in the x,y axis
Thank you very much for your time