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.
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.