Hi,
Is there a way to detect whether the player is near the edge of a walkable area?
I am trying to create a turn-around animation coupled with the normal walk.
In order to make the animation realistic I need to move the character a few pixels in the direction of the mouse click, but this can cause the character to be moved outside of the walkable area.
I thought I had exhausted the forum with my search, but now I seem to have found GetWalkableAreaAt.
This might work if I test for which walkable area is at xy with offset :)
Another option would be to use regions. You can create one near the edge of that walkable area of yours. That's easier, imho.