I am currently creating a game based on the classic arcade game "Frogger". When the frog (with an 8 direction behaviour) jumps on a log (with a bullet behaviour) I would like it to be pinned to the position of the log. I currently have a pin behaviour on the frog and have the following events.
Condition: Frog is overlapping log Action: Frog pin to log (position only)
Condition: On any key pressed Action: Frog unpin
The frog does pin to the log, however no matter where the frog jumps onto the log, the frog pins right on the edge of the log. Is there any way I can change where the frog will pin to the log? I have tried changing the origins and collision polygons of both the frog and the log but have had no success.