Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

[Answered] Check Passability

Status
Not open for further replies.
Hello everyone.
I checked Archea's script call and i found this to check passability of the player leaving the tile
JavaScript:
$gameMap.isPassable(x, y, direction)
Now I would like to know if there is a correspondant to
Code:
$game_player.passable?(x, y, d)
so that i can check passability of entering the other tile and if there is an event blocking the way.
I tested
JavaScript:
$gamePlayer.isPassable(X, Y, Direction)
and it is not working.
Thank you
EDIT: after messing around with the console I found this
JavaScript:
$gamePlayer.canPass(x, y, d)
Can a moderator put answered to this post since I can't 'best answer' my own message ? Thank you.
 
Last edited:

LTN Games

Master Mind
Resource Team
Xy$
0.01
I'm closing thread due to being addressed & solved if for any reason you would like it re-opened please report the post.
 
Status
Not open for further replies.
Top