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!

Unpassable Tile

mega01man

Villager
Xy$
0.00
Hello! I posted this on rpgmakerweb and haven't gotten a response in a week. I want to ask it here

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.
  • $gamePlayer.setThrough();
  • $gamePlayer.moveByInput();
  • $gamePlayer.canMove();
  • $gamePlayer.canPass();
  • $gamePlayer.isCollided();
  • $gameMap.isValid();
  • $gameMap.passable();
I can get the following data: $gamePlayer.regionId, $gameMap.regionId, $gamePlayer.x, $gamePlayer.y
I'm still learning this.
[doublepost=1487466685,1486826535][/doublepost]I got an answer! You can check the answer here.
 
Top