Walkable areas in script

Started by oskargunn, Thu 02/10/2014 22:58:30

Previous topic - Next topic

oskargunn

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.

oskargunn

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 :)

Adeel

Another option would be to use regions. You can create one near the edge of that walkable area of yours. That's easier, imho.

SMF spam blocked by CleanTalk