Hello! I posted this on rpgmakerweb and haven't gotten a response in a week. I want to ask it here
[doublepost=1487466685,1486826535][/doublepost]I got an answer! You can check the answer here.
I'm still learning this.Hello, I'm trying to make a short plugin that just prevent the player on walking on tiles with a set region(say region 1). I am aware there are quite a few of region plugins that are amazing and does what I want to do. But I'm just trying to make a little plugin specifically only to the player.
I'm confused on what following properties should I use to make the player not walk to the tile.
I can get the following data: $gamePlayer.regionId, $gameMap.regionId, $gamePlayer.x, $gamePlayer.y
- $gamePlayer.setThrough();
- $gamePlayer.moveByInput();
- $gamePlayer.canMove();
- $gamePlayer.canPass();
- $gamePlayer.isCollided();
- $gameMap.isValid();
- $gameMap.passable();
[doublepost=1487466685,1486826535][/doublepost]I got an answer! You can check the answer here.