Forewarner of the Black Wind
- Jul 2, 2014
- Reaction score
- First Language
- Primarily Uses
The logic is still wrong.The code from the screenshot is from other stuff I've tested before. It checked the direction of the Event whose passability I wanted to check. This event always faces right if any self-switch is on so that's why it has this conditional. Sorry for being confusing here.
You started this thread saying you wanted to check the tile 2 steps in front of the player.
If what you actually want is what you described in Post #7, where it is always simply checking the tile to the left of the event, then I don't know why you're going off of anything to do with the player. The player's x, y, and direction has nothing to do with it.
$gamePlayer.canPass(this.x, this.y, 4)
Good luck with your project!