Hi,
I'm working on a little 2d platformer game and I ran into some trouble.
I want the player to react differently depending on how he approaches an enemy.
Right now I use the _on_Area2D_body_entered(body) signal function, and I need some way to define the players position relative to the enemy(area2d). The reason for this is, I want the player to bounce back when he touches the enemy and of course the direction of the bounce will differ according to the relative position.
I hope someone out there can help me fix this problem, because I'm all out of ideas.
Best Regards
SpaceDave