[RMMV] CHECKING FOR PASSABILITY WHEN ENCOUNTERING IMPASSABLE EVENTS

Posts

Pages: 1
Hello,

I'm not sure how to check for when an object is blocking the player's movement route (via an autostart movement call). The code I've been using only checks for map passability:

 $gameMap.isPassable($gamePlayer.x+1, $gamePlayer.y, $gamePlayer.directionRight)

I know there is a way to check for event passability instead of just map passability, but I haven't been able to figure it out. Any help is appreciated!
This seems to work for both map tiles and event collision.

$gamePlayer.canPass($gamePlayer.x,$gamePlayer.y,6)

6 being Right. (it's right on your keypad, see? 8 is up, 4 is left, 2 is down.)
geri_khan, you are always pulling through with answers to my random questions. Thanks a ton!
Pages: 1